Im trying to capture keypresses from an input and then focussing an element.
<input id="asdfasfd1" />
<input id="asdfasfd2" />
<select id="currency"><option>bla</option></select>
$(function() {
var currencyElement = $('#currency');
$('#asdfasfd1').bind('keypress', function(event) {
event.preventDefault();
currencyElement.focus();
});
});
http://jsfiddle.net/KkXwT/6/ works in IE 8,9,10 and Chrome 23 but not in Firefox 17, does some know why its not working?
Its working… Check this.. jsfiddle.net/KkXwT/21
In FireFox there is no highlight that makes you feel it as focused.
I have made something for you to realize that its focused.