Finding opening and closing parentheses in an input field, delete them (together with everything inside)?
<p>I would like to accomplish the following with jQuery: find an opening and closing parenteshes in the input field with the ID of <code>#post_tag_names</code> and remove them from he input field (together with the content inside the parentheses).</p>

<p>For example, if the input field has this:</p>

<pre><code>rails (30)
</code></pre>

<p>it should end up like this:</p>

<pre><code>rails
</code></pre>

<p>How to accomplish that?</p>

<p><strong>EDIT</strong></p>

<p>I already have the triggering event:</p>

<pre><code>$('#post_tag_names').bind('railsAutocomplete.select', function(event, data){
  /* I NEED THIS PART */
});
</code></pre>
