vendredi 24 juin 2016

I am new to html. I want that after clicking on checkbox "Others", a text box will appear

function enabletxt(){
    document.getElementById("chkAssociation").innerHTML="<input type='text' value=''>"
}

Hobbies:
<input type="checkbox" name="hobbies" value="Dancing">Dancing
<input type="checkbox" name="hobbies" value="Painting">Painting
<input type="checkbox" name="hobbies" value="Others" onChange="javascript:enabletxt();" ID="chkAssociation"  runat="server" />Others




Aucun commentaire:

Enregistrer un commentaire