[jQuery] Disable focus on form fields
Hi
I'm trying to disable focus on certain form elements using the following code:
$("#id").focus(function() {
this.blur();
});
but I get an error in firefox pointing to that line ([Exception... "'Permission denied to set property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
<a href="http://localhost/dev/js/job_specs.js">http://localhost/dev/js/job_specs.js</a> :: anonymous :: line 159" data: no])
I've tried substituting the function contents with "$(this).get(0).blur()" but I get the same result.
Any thoughts? I don't want to use "disabled" because I need the form values to be passed to the server.
Chris
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/