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
Simple. When editing or changing values, first put the focus then set value.
$("#catg_name").focus(); $("#catg_name").val(catg_name);