Here is my HTML
<span class="sp-right">
<label>Name:</label>
</span>
<span class="sp-left">
<select name="omoor" required>
<option value="" style="display:none">something</option>
</select>
</span>
I want to change class sp-right
to class sp-left
and sp-left
to sp-right
via toggle.
here is my jquery :
$(".sp-right").each(function(){
$(this).removeClass("sp-right").addClass("sp-left");
});
does it only work once and for 1 item?
Any idea?
Thanks to
user3856699
source
to share