javascript - How to get the custom data attribute value of option using jquery
我想大声告诉你
我想大声告诉你 2017-05-18 10:54:28
0
3
430

How to get the custom data attribute value of option using jquery

我想大声告诉你
我想大声告诉你

reply all(3)
習慣沉默

You really answered, it seems that they are so spoiled that they are too lazy to check the API. They would rather ask a question on segmentfault. Do you think this is more efficient?

我想大声告诉你
$('option').attr('data');
大家讲道理

例:
<p id="E1" data-some="test">
var value = $('#E1').data('some');

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template