jQuery move cursor to end of text input
问题 Currently I have an input box which has the value "Current Website" When they click it I run this function: function clearMeHttp(formfield) { if (formfield.defaultValue == formfield.value) { formfield.value = "http://"; } }; It works fine if you click into the box, but if you tab into the box it just highlights the word "http://" which defeats the purpose of it unless they hit the right arrow key which I want to avoid. Thanks! Here's the other code: <input onblur="restoreMe(this)" onfocus=