|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hey guys - I usually hang out at the php side, but..
I have a form that I need to tweek out a bit, and it was suggested to me that I use Javascript.. I have a form that needs to display additional fields if a certain check box is selected. I am using php to actually process the form (the form is in 2 parts - form.html and process.php). I was wanting to do an if/then kinda thing, but have no CLUE how to do it w/ javascript. Essentially, if a user picks "yes", I want 3 more fields to show up. If they pick "no", continue on to the other questions. There is a need for this to be done 2x on the same form - the form is to be used by a helpdesk to report outages, etc.. any advice, tips, samples, etc.. is appritiated.. Thanks! |
|
#2
|
|||
|
|||
|
Well, that's not going to be easy to do with Java
.Try asking again in the Html & Javascript forum. You'll get more help there. (And don't worry, people stumble in here all the time looking for javascript help).
__________________
-james |
|
#3
|
|||
|
|||
|
If you are still interested I have come across some nice scripts are www.dynamicdrive.com. I would see if they might have what you are looking for.
__________________
El éxito consiste en una serie de pequeñas victorias día a día MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html |
|
#4
|
|||
|
|||
|
I think there is no onClick event for check box. Instead you can use a graphical button that looks like a check box. then put onClick event that point to the javascript function to render additional rows (maybe need to redraw the whole form)
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Forms processing before submitting? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|