Jump to content

Disabled Radio Button In Html


tuzojazz
 Share

Recommended Posts

Hi guys:This is my code for a radio button. "disabled" is not a property of asp:radiobutton

<asp:radiobutton id="rdbPeriod"  runat="server" disabled="true" Text="Period" GroupName="Ab"></asp:radiobutton>

the output html is this

<span disabled="true"><input id="rdbPeriod" type="radio" name="Ab" value="rdbPeriod" /><label for="rdbPeriodo">Period</label></span>

why the input is enclosed whithin <span> tags?I want to get this ouptut html

<input id="rdbPeriod" type="radio" name="Ab" value="rdbPeriod" disabled="true"/><label for="rdbPeriodo">Period</label>

How can I do it?Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...