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?

  1. change somecustomattr="value" data-custom="value".
  2. use $('input[data-custom="value"]);

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -