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
Super easy (you may have to focus on the input element)
inputEl = getElementById('inputId'); var temp = inputEl.value; inputEl.value = ''; inputEl.value = temp;