What is the best way (and I presume simplest way) to place the cursor at the end of the text in a input text element via JavaScript - after focus has been set to the element
In jQuery, that's
$(document).ready(function () { $('input').focus(function () { $(this).attr('value',$(this).attr('value')); } }