Madhu
Madhu

Reputation: 2551

Jquery Focusing another element on blur is not working in FireFox

I am trying to focus another input element on one input`s blur event. But its not working.

<input type="text"/>
<input type="text"/>


$("input:last").on("blur",function(e){
   $("input:first").focus();
})

the cursor is not present in the element. So i am not able to type anything.

http://jsfiddle.net/7foref2g/

Upvotes: 1

Views: 622

Answers (2)

Ashrin Tamim
Ashrin Tamim

Reputation: 21

In my case worked on Firefox desktop. But didn't work in Firefox mobile.

Upvotes: 0

Related Questions