I have several options values (attribute value) that have spaces,
<option value="Divers RF" class="">Divers RF</option>
<option value="France Bleu" class="">France Bleu</option>
How can I replace the space with a _ in the value?
So the result would be
<option value="Divers_RF" class="">Divers RF</option>
<option value="France_Bleu" class="">France Bleu</option>
and not only for these two options but for all options that have spaces in them.