Cursor after digits

/ Published in: jQuery

Move the cursor after the digits in entry box

Copy this code and paste it in your HTML
  1. function adjustCursor(){
  2. var msisdnText = $('#msisdn-input').val();
  3. $('#msisdn-input').val('');
  4. $('#msisdn-input').focus();
  5. $('#msisdn-input').val(msisdnText);
  6. }
  8. and then call it somewhere in you DOCReady: setTimeout(adjustCursor,300);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.