Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
<input name="ccontact" type="checkbox" id="ccontact" value="checkbox" onClick="toggleTB(this)"/>
<input name="contact" type="text" id="contact" value="contact" readonly="true" />
Note that name of checkbox is preceding with one 'c' character with name name of textbox
var theTB = what.name.substr(1); //this removes the preceding 'c'
var td = document.getElementsByName(theTB).name;
but this is not working pls help!
should be like above you said but not working, pls let me know statment under if are also correct "install" is the name of the form