PDA

View Full Version : Make Form Appear with Yes or No response


angelfish723
09-15-2010, 04:51 PM
I have made a form in Dreamweaver, and I understand the basics of creating forms. But I've been asked to try and create a form where the users will either check "yes" or "no" and if they check "yes" another box (like a text field) will appear for them to write in.

Is there a way for this to be done? And if so, how!? :? Thanks for any help!!

Corrosive
09-15-2010, 05:14 PM
Welcome to the forum.

JQuery to the rescue again... http://iamzed.com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a-checkbox-selection/ Is there anything it can't do?

angelfish723
09-15-2010, 07:37 PM
That is EXACTLY what I want to do, but it's not working for me. I'm sure I need some source files (like jquery-latest.pack.js?) but where do I get that?

Sorry, I'm somewhat new to all this programming. Thanks so much for you help!!

angelfish723
09-15-2010, 07:41 PM
Nevermind! I did a search for that file and uploaded it to my server and it works perfectly. THANKS!!

Corrosive
09-16-2010, 07:15 AM
You are welcome. And yes, for anyone else reading this thread the JQuery framework file can always be downloaded at; http://jquery.com/

gentleone
09-16-2010, 11:04 AM
Or you're allowed to use the remote hosting service provided by Google.


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>