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
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
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
> 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
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
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
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?
$("#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?
$("#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
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
10 matches
Mail list logo