I have the following code (see below) which makes the field focus on the inserted text input. But this does not work in Firefox. So I cannot type any text in Firefox.
$('<input/>').attr({ type: 'text', id: 'test', name: 'test' }).appendTo('#form');
Is there any fix for this?
Thanks in advance!
--
Correction to my question
I found out that the problem is caused by
$(selector).sortable().disableSelection()
The only resolution I have now is to not call
//disableSelection()
Any other suggestions are more then welcome.
try for focus
$('<input/>').attr({ type: 'text', id: 'test', name: 'test'}).appendTo('#form');
$('#test').focus(function(e) {
alert('Focus');
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With