Not sure why this doesn't work in Firefox (works fine in Chrome). Basically trying to focus on the current textarea with id "test" after making a change to the text.
<textarea id="test"></textarea>
<textarea id="test2"></textarea>
And JQuery code:
$('#test').change(function() {
alert("You entered: "+$(this).val());
$(this).focus();
});
Refer to: http://jsfiddle.net/e0fahvh0/
This is not a duplicate, as the questions asked before (refer to Calling $().focus on a textarea in Firefox doesn't work as expected) was via a click event, this is a change event and it's somehow different!