Hi Friend,
I have a Jquery Validation code in which I have written

element.focus();

When I view that page into other browser I able to modify that previous Field if I was left next field blank or wrong input.

but in chrome i wont able to do so..!

Can you please explain the reason behind this?


Thanks in Advanced...!

Failure of element.focus() is a known bug in Chrome. I have not been able to identify a workaround.

Airshow

To overcome failure of window.focus() in Chrome, it is reported that window.blur(); window.focus(); works.

You could try element.blur(); element.focus(); .

Would be interested to know if it works.

Airshow

nah it wont works...

but i have resolved my issue by deleting all the blur events.

Now I call the function onto the keyup and form.submit events.

Thanks a lot you people.....!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.