How can I remove elements that have a name begining with undescore using jquery?
<pre><code>&lt;form id="myForm"&gt;
 &lt;input type="hidden" name="_myCheckbox01" value="on"&gt;
 &lt;input name="myCheckbox01" type="checkbox" value="true"&gt;
&lt;/div&gt;
</code></pre>

<p>and the pseudo javascript :</p>

<pre><code>   var myNewForm = $("#myForm").remove("type hidden and name begins with _");
</code></pre>

<p>What is the correct way to do this ? I want to keep them in the original dom and create a new object, which is the same except without the underscored named elements.</p>

<p>(The reason I am doing this is because spring-mvc form tag creates the hidden inputs, however I am serializing the form, and posting as json - which is then converted to a java object, the pojo has no fields begining undescore so it causes problems).</p>
