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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -