Thank you.
But, is there no better way!?
The compatibilities of browsers are really troublesome
On 1/16/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
沈志川 (Benx) schrieb:
> I tried, but not work!
>
> Here is my code snip:
>
> jQuery("#hello").blur(function() {
>//... some form validation code
> });
>
> jQuery("#form").submit(function() {
> jQuery("#hello").trigger("blur");
> ...
> });
As a workaround, you could refactor your code a bit:
function validateHello() {
//... some form validation code
}
jQuery("#hello").blur(validateHello);
jQuery("#form").submit(function() {
validateHello();
...
});
--
Jörn Zaefferer
http://bassistance.de
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
--
Best regards,
沈志川 (Benx)
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/