Answers for "javascript get data attribute from selected option jquery"

9

jquery select by data attribute

$('div[data-key=value]');
Posted by: Guest on April-06-2020
0

javascript get data attribute of selected option

function check_status(obj) {
  var uid = obj.options[obj.selectedIndex].getAttribute('data');
  alert(uid);
}
Posted by: Guest on September-09-2020

Code answers related to "javascript get data attribute from selected option jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language