Answers for "how to get an attribute value in jquery from a select list"

0

selected option attribute jquery

$('#location').find('option:selected').attr('myTag');
Posted by: Guest on August-28-2020
2

jquery get data attribute of selected option

$(this).find(':selected').data('id')
Posted by: Guest on July-22-2020
8

get attribute value jquery

var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
Posted by: Guest on March-20-2020

Code answers related to "how to get an attribute value in jquery from a select list"

Code answers related to "Javascript"

Browse Popular Code Answers by Language