jquery - How to get all input fields with particular attribute? -
<input type="text" somecustomattr="value"></input>
this code work not:
$fields = $('input[somecustomattr="value"]','#contaners_id');
is ok?
- change
somecustomattr="value"
data-custom="value"
. - use
$('input[data-custom="value"]);
Comments
Post a Comment