Ask Experts Questions for FREE Help !
Ask
    darryl333's Avatar
    darryl333 Posts: 1, Reputation: 1
    New Member
     
    #1

    Oct 11, 2008, 05:45 AM
    Javascript radio button mandatory text validation
    Hello. Could you please help me with some javascript. In a section of my form, I want two radio buttons. When neither button is checked, an alert box will appear. If the first button is checked the form will pass. If the second button is checked, a series of mandatory text boxes are highlighted and must be validated before the form will pass.
    Good luck and thanks
    Darryl333
    vingogly's Avatar
    vingogly Posts: 718, Reputation: 105
    Senior Member
     
    #2

    Oct 11, 2008, 07:28 AM

    The set and unset functions will let you manipulate your radio button functions dynamically:

    Check Boxes and Radio Buttons

    And here's an example that illustrates how to show/hide a hidden form field when another is clicked:

    Show/Hide form field selecting a radio button option | frinity

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Excel 15 digit issue, tried converting to text, text to column feature negates fix [ 6 Answers ]

I have the following numbers that exceed 15 characters that needs to be split into its own columns. Down the road, there would be thousands of such rows of data with the first couple set of unique numbers. 890432453253208820,5004500558,05CC,1,0,0,0,0,0,0, 0000,5.0000,2007-01-11...

Scanner that converts text image to real text [ 1 Answers ]

Dear Helpdesk advisors, I look for a scanner,that reads any character from paper,converts it to text and has interface with Microsoft software.Usage area: reads product name , unit of product bought, price and other sort of text info.The scanner is able to convert printed and possibly...

Press sleep button and switch on/off button to be able to see login screen [ 1 Answers ]

Friend of mine has got problem with his new desktop (XP SP2) , when he starts the PC it boots normally till it reaches where it shows windows XP logo then the screen gets blank (i.e he can not see the login name for users). What he used to do: is press the sleep button on the keyboard, then...

Non mandatory sentence [ 1 Answers ]

My Husband has caught his second drug case, and he has a state parole violation and that is a year. Ok now he go 1 1/2 to 4 for his new case. Now his attorney told us that if he does at least 3 to 6 months of his new case he would be able to get prerelease is that true? His sentencing is non...

Use Windows to find text in javascript? [ 5 Answers ]

I suppose this might be more of an "other software" issue than a javascript issue... so let me know if you think it should be moved... In webpages I use javascript to hide email addresses from bots. I want to search the files of the websites for these javascript uses so I can change the email...


View more questions Search