开发者

ASP.NET matching id on label and input pairs

Is have about 20 label/input pairs on a page that use JS to give them unique styling. For this to work they must have matching id's on each pair.

This is the way the I would like the HTML to be formatted:

<p class="radioBtn">
    <label for="business00"></label>
    <input id="business00" type="radio" name="radioBtn" value="" />
</p>
<p class="radio开发者_运维知识库Btn">    
    <label for="private00"></label>
    <input id="private00" type="radio" name="radioBtn" value="" />
</p>
<p class="radioBtn">
    <label for="business01"></label>
    <input id="business01" type="radio" name="radioBtn" value="" />
</p>
<p class="radioBtn">    
    <label for="private01"></label>
    <input id="private01" type="radio" name="radioBtn" value="" />
</p>

and so on.

Can this be achieved using ASP.NET? Many thanks in advance.


I think this will answer your question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜