Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Thanked 0 Times in 0 Posts

    Java script required validation


    Kindly help me on this incidents

    In my jsp page i need to write java script functions for require fields validations

    for example when i select the other credit option in drop down box show the comment text field with asterisk symbol and if i don't enter the comments show the dialog box like "Please enter comments"

    in my drop down box i have 5 option only two items but only show the asterisk symbol and if i don't enter show the dialog box
    like "Please enter comments"

    example other credit and other debit

    Kindly help me on this issue

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    London, England
    Thanked 2,573 Times in 2,551 Posts
    It is not much use just quoting examples of your requirements.
    Form validation has been covered very many times in this forum. Try using the search feature. If you are still having problems feel free to come back, but please post the code you have written - then someone will most likely help you correct/improve it.

    Please have a look at the forum rules regarding double-posting.

    1.2) Do not crosspost- CodingForums.com is divided into various categories. When initiating a thread, always locate the most appropriate category, and post your question only ONCE, in that category. Do not post the same question in multiple categories.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Last edited by Philip M; 11-01-2012 at 12:25 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts