[jQuery] Re: [validate] onkeyup for single field

2009-01-29 Thread simshaun
I tried adding onkeyup="return false;" to the field. Doesn't seem to work though. The solution I came up with is to add this in the config array. onkeyup: function(element) { if ($(element).attr('name') != 'username') { $.validator.defaults.onkeyup.apply(this,arguments); } } It

[jQuery] Re: [validate] onkeyup for single field

2009-01-29 Thread Jörn Zaefferer
Good question, and I don't yet have a good solution at hand. One approach I'd try is to add your own keyup-handler to the input field, as always cancel the event (return false). That way the event doesn't get bubbled up to the parent form. Jörn On Thu, Jan 29, 2009 at 4:29 PM, simshaun wrote: