chk的后面加一个span,spinid.innerText="姓名"

解决方案 »

  1.   

    网页上的CHECKBOX和常规的CHECKBOX不同。是不包含文字的。
    所以可以用楼上的方法。
      

  2.   

    if those checkbox, radiobox are server controls, set AutoPostBack=true, add an event handler to CheckedChanged, then change the text in the event handler. But this approach is not recommended, using client side javascript is a better approach
      

  3.   

    以下是前台代码:
    <input id="rdo" type="radio" onclick="javascript:form[0].item("chkl").innertext='dizhi'"/><lable for ="rdo" id="rdol">xinmin</lable>
    <input id="chk" type="checkbox"/><lable for="chk" id="chkl">xinmin</lable>