Set focus() with Firefox doesn't work
Hi Folks,
<script>
$(function(){
$("#inp1").blur(function()
{ $(this).val("Test").focus().select();}
);
});
</script>
<div id="test">
Eingabe 1: <input id="inp1" name="inp1" size="5"></input>
Eingabe 2: <input id="inp2" name="inp2" size="5"></input>
</div>
I 'd like to blur() "inp1" then change the val() of "inp1", set focus() to "inp1" and select "inp1".
Change val() works but all other not.
With IE all works right, not with Firefox (Linux)
Why?
Any hints?
Timothy