0

I am trying to figure out how to put the cursor to the end when input is clicked because now if i click an input it just removes the disabled attribute but I still cannot type any text I need to press twice to be able to start writing some text. What solution could it be ?

By the way 1.4 jQuery is used.

JS:

$('.some-input-field').live('click', function () {
            var inputField = $(this).focus();
            inputField.removeAttr('disabled');
});
Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
user2204367
  • 145
  • 3
  • 3
  • 16

0 Answers0