473,498 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show hide depending on the value of a select

1 New Member
Hello,
I have a form with multiple seizures which to choose between various input occurrences in radio (only one choice possible). I would hope that if the user selected in a particular ca do that automatically appear in a form more in my jsp page
eg:
1 choice []
2 choice []
3 choices []
If you chose option 1 or option 2 ca just displays:
the value of the choice

If you chose option 3 ca automatically add:

Systolic: | ______ |
distolique: | ________ |
Lice: | _________ |
temperature: | _________ |

I tried with
Expand|Select|Wrap|Line Numbers
  1. etape2forward function () {
  2. $ ("# Etape2_forward"). Click (function () {
  3.  
  4. if ($ ("[name = 'etatVisuel']: checked") val () = 4.!)
  5. {
  6. $ ("# Systolic") hide ().
  7. $ ("# Digsystolique"). Hide ()
  8. $ ("# Lice"). Hide ()
  9. $ ("# Temperature"). Hide ()
  10. $ .ajax ({
  11. url: '/ GHopital / emergency / save'
  12. Type: 'POST'
  13. data: {"idPatient": $ ("# idPatient") val ().
  14. "EtatVisuel": $ ("[name = 'etatVisuel']: checked") val ().
  15.  
  16. },
  17. success: function (idUrgence) {
  18. window.location = "# / emergency / read /" + idUrgence;
  19. }
  20.  
  21. });
  22.  
  23.  
  24.  
  25.  
  26. }
But it does not work unfortunately.
Jul 4 '15 #1
1 1510
Dormilich
8,658 Recognized Expert Moderator Expert
check your error console. there are lots of syntax errors happening.

PS. you have additional spaces all over the place causing HTTP and CSS errors as well.
Jul 4 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
148518
by: Steve Speirs | last post by:
Hi I'm trying to show/hide a simple piece of text and a text field on a form based on what choice is made from a drop down box. <select name="dropdown" size="1"> <option selected...
3
16519
by: earl | last post by:
Hey Say I have two <form> on a page like this : <form action="private.asp" method="post" name="form1"> // code <input type=submit value="submit" name="submit"> </form> <form...
9
2735
by: sergio | last post by:
Hi all, I have created the following script that will show/hide a menu based on checkboxes. It works fine in Opera but not on IE6! Does anybody knows a workaround this problem? Thanks for your...
2
11679
by: jeet_sen | last post by:
Hi, I have created a table colelcting data from an XML source. After I built the whole table I ahve given user options to filter out columns from the table. For this I have collected all the...
1
16719
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the...
6
4175
by: Norman | last post by:
Hello, I have a working Show / Hide form, that works on FF, but what I would like to do is to be able to display one part when a user clicks on one radio button and display another part when the...
2
2044
by: Scott McNeill | last post by:
I have created a form with show/hide on a couple of fields. However, this hidden info is not posting back when I click submit. Can someone help? Source code <?xml version="1.0"...
5
2711
by: SValencia | last post by:
Hello my name is Steve and I am a newbie....almost. I have been working at learning html, graphics and css in my spare time. I have a site at www.ContractorInsurance.net. Yes, I am an...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4908
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.