Replace characters within an attribute in jQuery
<p>I have several options values (attribute <code>value</code>) that have spaces,</p>

<pre><code>&lt;option value="Divers RF" class=""&gt;Divers RF&lt;/option&gt;

&lt;option value="France Bleu" class=""&gt;France Bleu&lt;/option&gt;
</code></pre>

<p>How can I replace the space with a _ in the value?</p>

<p>So the result would be</p>

<pre><code>&lt;option value="Divers_RF" class=""&gt;Divers RF&lt;/option&gt;
&lt;option value="France_Bleu" class=""&gt;France Bleu&lt;/option&gt;
</code></pre>

<p>and not only for these two options but for all options that have spaces in them.</p>
