How to get the custom data attribute value of option using jquery
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');
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?
例:
<p id="E1" data-some="test">
var value = $('#E1').data('some');