Andreas Wahlin schrieb:
>> Another question: i want to disable the submit event of the form,
>> yet my code doesn't work "form.unbind is not a function"
>>
>> var $this = jQuery(this);
>> var form = $this[0].form;
>> form.unbind("submit");
>
> I think the problem is that the form variable is a DOM variable, and
> you need to wrap it in jQuery to unbind, so change last line to
> $(form).unbind('submit');
You don't need to wrap "this" in a jQuery object and get it out
immediatly in the next line with $this[0].
Just do this:
$(this.form).unbind("submit");
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/