Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Help Creating Form with Hidden Fields
Old 09-21-2009, 07:54 PM Help Creating Form with Hidden Fields
Junior Talker

Posts: 2
Trades: 0
I appreciate any help anyone can lend me with this project I am working on.

Ok if you take a look at the page I am building this form on, it is located at http://www.serigraphics.net/requestquote.php

There are a few things I need help on. First is, I have it set to when you click the checkboxes on the "Size" section a textarea appears. I would like to have it be hidden if the box is unchecked again.

That is a minor issue, the one I really need to discover how to do is for the "Type", and "Style" section. When an option is selected on the "Type" dropdown, I need it to change the options on the "Style" dropdown.
Example: When a user selects T-Shirt, the style will show options like "Gildan Heavy Duty," "Hanes 50/50," "Fruit of the Loom 100% Cotton," etc. Then if someone changes to different option on type like Hoodie, the options on the style dropdown will change to hoodie styles.

Another thing is the "Total Quantity" row, I need that to show the textarea next to it only if "Other amount" is selected on the drop down.

Here is the code I used, which is basic dreamweaver code. This is just the javascript portions to show how I made it hide then subsequently show the textareas.


Quote:
<body onload="MM_showHideLayers('smallqty','','hide');MM _showHideLayers('mqty','','hide');MM_showHideLayer s('lqty','','hide');MM_showHideLayers('xlqty','',' hide');MM_showHideLayers('xxlqty','','hide');MM_sh owHideLayers('xxxlqty','','hide');MM_showHideLayer s('yxsqty','','hide');MM_showHideLayers('ysqty','' ,'hide');MM_showHideLayers('ymqty','','hide');MM_s howHideLayers('ylqty','','hide');MM_showHideLayers ('yxlqty','','hide')"
>


<input name="Youth XS" type="checkbox" id="Youth XS" onclick="MM_showHideLayers('yxsqty','','show')" value="youthxs" />
<input name="yxsqty" type="text" id="yxsqty" size="2" maxlength="4" />
Appreciate any help you guys can offer.
nobi410 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Help Creating Form with Hidden Fields
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16162 seconds with 12 queries