By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,575 Members | 1,377 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,575 IT Pros & Developers. It's quick & easy.

Javascript checkbox to hide fields if checked

P: n/a
Hello all,

I saw this post on google that contained the following code and I
tried it but it did not work. I am trying create two contact forms and
it the info in the first form is the same contact info that would be
on the second, the enduser can check a box to hide all of the
addtional fields. Below if the original code.

<input type="checkbox"
onclick="if(document.all)del.style.display='none'" ">
<div id ="del">
Your address <input type="text" name="address">
.....the rest of the deleivery fields
</div>
Thanks!!!
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
DettCom wrote:
Hello all,

I saw this post on google that contained the following code and I
tried it but it did not work. I am trying create two contact forms and
it the info in the first form is the same contact info that would be
on the second, the enduser can check a box to hide all of the
addtional fields. Below if the original code.

<input type="checkbox"
onclick="if(document.all)del.style.display='none'" ">
<div id ="del">
Your address <input type="text" name="address">
....the rest of the deleivery fields
</div>
Thanks!!!


Hi,

It worked OK on IE6 on XP

Kien
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.