drop down menu - jquery and selecbox, disallowing -
$('#my_select').live("click", function(e) { e.preventdefault(); //return false fails. alert("test"); //or show dialog });
having such live action, want disable how dropdown options appear once click selectbox, instead want display own div changes value. code above doesn't disallow , don't want used disabled= "disabled"
attribute fails further server based validations.
this should :)
in case link broken :)
$('select').live("mousedown", function(e) { e.preventdefault(); //return false fails. //alert("test"); //or show dialog return; });
Comments
Post a Comment