沈志川 (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
[email protected]
http://jquery.com/discuss/