Add User-friendliness to an HTML CheckBox/RadioButton

I received some comments about a previous post 'Nice HTML tip' saying that it soesn't work.

Indeed the code was wrong, it's the ID attribute you have to use in the checkbox

<input type=checkbox ID=c1>
<Label for="c1">All Items</Label>

Obviously it should work with ASP.Net like:

<asp:checkbox ID=c1 runat=server  />
<Label for="c1">All Items</Label>

 

 

2 Comments

Comments have been disabled for this content.