title: jquery value separated by semi-colon
body: <p>The value of <code>tousers</code> has users separated by a semi-colon.</p>
  
  <pre><code>&lt;input type='text' class='tousers' value='admin;user1;user2;user3;useradmin;' /&gt;
  </code></pre>
  
  <p>How do I search if <code>admin</code> already exists between semi-colons? So the below code wouldn't add <code>admin</code> to <code>tousers</code> because it already exists. </p>
  
  <pre><code>var content = 'admin';
  
  var to = input.find('.tousers').val();
  
  if(to == "") {
      input.find('.tousers').val(content);
  } else {
      input.find('.tousers').val(to + ';' + content);
  }
  </code></pre>