are you using the validate plugin? i'm not familiar with it at all, but for a simple validation like this you could do:
// DOM-ready handler $(function() { // Listen for "onsubmit" events for the form $("#signupForm").submit(function() { // Get the checkbox var checkbox = $("#chkStatus5"); // True or false based on the checkbox var checked = checkbox[0].checked; // If its checked... if (checked) { // ...grab the textfield... var text = $("#textfield"); // ...and its value var val = text.val(); // If the textfield is empty... if (val === "") { // ...validation failed, // so do something! } } }); }); hope that helps. On Sep 21, 8:38 pm, ripcurlksm <kevin.mccorm...@cox.net> wrote: > I have a "How did you hear about us?" with a series of checkboxes that is > working great, however there is an option for "Other", where they can fill > out their answer. > > I want to modify the script so if the checkbox for Other is selected, they > are required to fill in the input box. > > I have this working here, but I cant get the input box to be required if > "other" is selected:http://psylicyde.com/misc/jquery-validate/demo/test.html > -- > View this message in > context:http://www.nabble.com/validate---if-%22other%22-checked---%3E-require... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.