August 9, 2022

WeAnswer

The complete guide to the beginners as well as to the experienced Web Developers

Find id from class and attribute value

javascript : Get id from class name +attribuute value

 

 

<input type=”hidden” class=”class_name” attribute_name=”1″ />

 

var val_id = $(‘.class_name[attribute_name=”1″]’).attr(‘id’);