Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
jquery get data attribute of selected option
Zaria
Programming language:
Javascript
2021-06-20 23:15:04
0
Q:
jquery get data attribute of selected option
Christian
Code:
Javascript
2021-02-28 11:09:53
$('#location').find('option:selected').attr('myTag');
0
clement
Code:
Javascript
2021-06-12 02:17:29
$(this).find(':selected').data('id')
0
Tags
get
data
jquery
option
attribute
select
Related
select class with data attribute jquery
jquery get selected option value
selected option attribute jquery
jquery select by data attribute
get text of selected option jquery
get selected option value jquery
jquery find by data attribute
select onchange jquery get the selected option data attribute
jquery get element by class and data attribute
get option value jquery
jquery get data attribute value
access selected option in jquery
get text selected option jquery
jquery get data attribute
jquery find div with data attribute value
jQuery get selected option
get selected option text jquery
New to Communities?
Join the community