troubleshooting Question

Form validation question

Avatar of earwig75
earwig75 asked on
JavaScriptjQuery
3 Comments1 Solution47 ViewsLast Modified:
I have a Div with a class called "ss-item-required". In that div  I have some text boxes and radio buttons. I want to validate each set of radio buttons and input boxes. The radio button validation is working, but the text boxes are not validating. Below is the code I am using to check that the radio buttons are validated. Can someone help me add to this script so that any input boxes in the div with that name are also validated? Thank you.
 
        if ($('div.ss-item-required:not(:has(:radio:checked))').length > 0) {
    	alert("Make a selection");
    	return false;
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros