[jQuery] Re: problems with the starterkit

2007-04-07 Thread Mike Alsup
jQuery does a bit more: All I'm saying is that you can't call a method that doesn't exist. I don't care how clever the event system is. ;-) Mike

[jQuery] Re: problems with the starterkit

2007-04-07 Thread Klaus Hartl
Jörn Zaefferer schrieb: Mike Alsup schrieb: > Huh? The reset event is not bound by jQuery. Are you thinking of submit? > No, starting with jQuery 1.1 element events are also triggered. The following for example will focus the first input in the page: Yes, but those events have to be bo

[jQuery] Re: problems with the starterkit

2007-04-07 Thread Jörn Zaefferer
Mike Alsup schrieb: > Huh? The reset event is not bound by jQuery. Are you thinking of submit? > No, starting with jQuery 1.1 element events are also triggered. The following for example will focus the first input in the page: Yes, but those events have to be bound. The reset event is n

[jQuery] Re: problems with the starterkit

2007-04-07 Thread Mike Alsup
> Huh? The reset event is not bound by jQuery. Are you thinking of submit? > No, starting with jQuery 1.1 element events are also triggered. The following for example will focus the first input in the page: Yes, but those events have to be bound. The reset event is not bound by jQuery. Mi

[jQuery] Re: problems with the starterkit

2007-04-06 Thread Klaus Hartl
Mike Alsup schrieb: $("#form").reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) Huh? The reset event is not bound by jQuery. Are you thinking of submit? No, starting with jQuery 1.1 element events are also triggered. The followin

[jQuery] Re: problems with the starterkit

2007-04-06 Thread Jörn Zaefferer
John Resig schrieb: $("#form").reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) O wow, I just opened up the starterfile zip - it uses a version of jQuery that's pre-dates jQuery 1.0! Yikes. No wonder the code was acting strange f

[jQuery] Re: problems with the starterkit

2007-04-06 Thread spinnach
you mean $("#form")[0].reset() ? Mike Alsup wrote: $("#form").reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) Huh? The reset event is not bound by jQuery. Are you thinking of submit?

[jQuery] Re: problems with the starterkit

2007-04-06 Thread Mike Alsup
$("#form").reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) Huh? The reset event is not bound by jQuery. Are you thinking of submit?

[jQuery] Re: problems with the starterkit

2007-04-05 Thread John Resig
$("#form").reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) O wow, I just opened up the starterfile zip - it uses a version of jQuery that's pre-dates jQuery 1.0! Yikes. No wonder the code was acting strange for you. JJ - Try usin

[jQuery] Re: problems with the starterkit

2007-04-05 Thread Mike Alsup
That looks like an error in the tutorial. It should be: $("#form")[0].reset(); I got stuck in the following section, couldn't make it work: $(document).ready(function() { // use this to reset a single form $("#reset").click(function() { $("#form").reset(); }); }); I modified