title: Set focus and cursor to end of text input field / string w. Jquery
body: <p>I have the following function that adds a selector to a search input as an advanced option, just like stack overflows advanced search.</p>
  
  <p>When you click what you are searching for it adds a prefix. See Jquery below:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function () {
  
          $("table#advanced_search_options tr").click(function () {
              var SearchSelection = $(this).children("td:last-of-type").html();
              var SearchInput = $('#Search');
              SearchInput.val(SearchInput.val() + SearchSelection);
              return false;
              alert(SearchSelection);
          });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I manipulate the above to also bring focus to the #search input, placing the carrot (the blinking text insert cursor) to the end of the inserted text/value?
  eg.</p>
  
  <p>HC:  &lt;-- The added value to my search input, I would like to set the cursor here, right after the :</p>