Hi guys i'm prob going about this the wrong way but this is what i have so far
The HTML
<divclass="example"><inputtype="radio"value="border-0"name="Border"id="text1"checked="checked"/>
No Border
</div><divclass="border-1 example"><inputtype="radio"value="border-1"name="Border"id="text2"/>
Single Line
</div><divclass="border-2 example"><inputtype="radio"value="border-2"name="Border"id="text3"/>
Double Line
</div><divclass="border-3 example"><inputtype="radio"value="border-3"name="Border"id="text4"/>
3D Line
</div><divclass="font-1 example"><inputtype="radio"value="font-1"name="Font"id="text1"checked="checked"/>
Normal Font
</div><divclass="font-2 example"><inputtype="radio"value="font-2"name="Font"id="text2"/>
Font 2
</div><divclass="font-3 example"><inputtype="radio"value="font-3"name="Font"id="text3"/>
Font 3
</div><divclass="font-4 example"><inputtype="radio"value="font-4"name="Font"id="text4"/>
Font 4
</div><spanid="regdisplay"class="">HELLO</span>
The problem i have is once you selected the border and it has been applied to #regdisplay you then select a font but it will removeClass for the border.
What i was thinking was removeClass(border-????) or removeClass(font-????) but not shore how or maybe i'm going about this all wrong.
Question
Craig Hopson
Hi guys i'm prob going about this the wrong way but this is what i have so far
The HTML
The JS
The problem i have is once you selected the border and it has been applied to #regdisplay you then select a font but it will removeClass for the border.
What i was thinking was removeClass(border-????) or removeClass(font-????) but not shore how or maybe i'm going about this all wrong.
so help please.
P.S. Please excuse the formatting.
Link to comment
https://www.neowin.net/forum/topic/1165723-jquery-remove-classs-starting/Share on other sites
1 answer to this question
Recommended Posts