<select id="location"> <option value="a" myTag="123">My option</option> <option value="b" myTag="456">My other option</option> </select>
alert($('#location').find('option:selected').attr('myTag'));
Yorum Gönder
Hiç yorum yok:
Yorum Gönder