function check_status(obj) { var uid = obj.options[obj.selectedIndex].getAttribute('data'); alert(uid); }