• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trying to validate jsp page with JavaScript

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The following code is in one of the .js files



The original code is called from a jsp page and will give an error if either of the two radio buttons were not selected,
we have tried to just add the code to run the function "validation_H2B" after it had checked
to see if one of the two radio buttons were selected.
It is trying to check if the button with the value of "M" is selected that it
also check another radio button group and see if the button with the value of "B" was selected
and if it was to give an error.
We are not getting a error message when the two are selected and it is not throwing any error
message back to the console or anywhere else that we can see.
We are not sure if we can call two checks from the same validation, if it is going to the
function or not? We may not have the function written correctly, we don't know.
We got the code from a third party and have lost our lead programmer so
we only have two newbees trying to figure out what someone else wrote and how to add checks to it.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "JavaScript" in a forum completely dedicated to questions on JavaScript isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Code not working



saying 'not working' isn't actually the right way to ask.. it could help if you point some error instead.

If H2B is select then the user can only pick Managed by 'E'



what is 'E' ?

I think you should read this first.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic