Knowing the jQuery Caret plugin, I\'m still seeing no way to do the following on a single line text box in HTML (i.e. the input:type=text control) with JavaScript:<
input:type=text
//hack to get cursor at end:
$(textboxselector).val($(textboxselector).val());
edit: should note focus first:
$(textboxselector).val(newtext); $(textboxselector).focus(); $(textboxselector).val($(textboxselector).val());