Link to home
Start Free TrialLog in
Avatar of tia_kamakshi
tia_kamakshiFlag for United Arab Emirates

asked on

.Net produces span tag for CSS for Radiobutton controls

Hi,

I am working on ASP.net2.0 website using C#

I have a .net radiobutton control as follows:


<asp:RadioButton ID="RadioButton1" class="js-required" data-validate="isFilled" runat="server" />

When it renders it produces the result

        <span class="js-required" data-validate="isFilled"><input id="RadioButton1" type="radio" name="RadioButton1" value="RadioButton1" /></span>

After rendering can .Net produces the result as follows:

<input id="RadioButton1" type="radio" name="RadioButton1" value="RadioButton1" class="js-required" data-validate="isFilled"/>

I mean I donot wanted <span class="js-required" data-validate="isFilled"> around input control

As it is giving hard time in jquery to understand radiobutton class

Please suggest

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Rajar Ahmed
Rajar Ahmed
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial