I have several DIVs
like the one in the code below.
<div class="col-md-10" ordained-field="0"></div>
How do I get all by the attribute that I created ordained-field
I have several DIVs
like the one in the code below.
<div class="col-md-10" ordained-field="0"></div>
How do I get all by the attribute that I created ordained-field
I just needed to define the type of element I want to bring and my custom attribute in brackets:
console.log($('div[ordained-field]'))
I also found a search using a custom attribute with values:
$('div[ordained-field="1"]')