how to get data attribute value in selected option in javascript code example
Example: javascript get data attribute of selected option
function check_status(obj) {
var uid = obj.options[obj.selectedIndex].getAttribute('data');
alert(uid);
}
function check_status(obj) {
var uid = obj.options[obj.selectedIndex].getAttribute('data');
alert(uid);
}