How do I delete spaces between capitalized words using jQuery?
<p>I have the following in my option:</p>

<pre><code>&lt;option value="Kabardino-Balkar Republic"&gt;Kabardino-Balkar Republic&lt;/option&gt;
&lt;option value="Karachay-Cherkess Republic"&gt;Karachay-Cherkess Republic&lt;/option&gt;
&lt;option value="Karelia Republic"&gt;Karelia Republic&lt;/option&gt;
&lt;option value="Komi Republic"&gt;Komi Republic&lt;/option&gt;
&lt;option value="Mari El Republic"&gt;Mari El Republic&lt;/option&gt;
&lt;option value="Mordovia Republic"&gt;Mordovia Republic&lt;/option&gt;
</code></pre>

<p>.. and I want them to be in the following format:</p>

<pre><code>&lt;option value="Kabardino-BalkarRepublic"&gt;Kabardino-Balkar Republic&lt;/option&gt;
&lt;option value="Karachay-CherkessRepublic"&gt;Karachay-Cherkess Republic&lt;/option&gt;
&lt;option value="KareliaRepublic"&gt;Karelia Republic&lt;/option&gt;
&lt;option value="KomiRepublic"&gt;Komi Republic&lt;/option&gt;
&lt;option value="MariElRepublic"&gt;Mari El Republic&lt;/option&gt;
&lt;option value="MordoviaRepublic"&gt;Mordovia Republic&lt;/option&gt;
</code></pre>

<p>How can I delete the spaces between capitalized words in the <code>value</code> attribute while keeping the hyphens in tact?</p>
