Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery Validator Syntax: Think my syntax is incorrect.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #150616
    theograd
    Participant

    jQuery Validator Syntax: Think I wrote it wrong. I’m trying to use the “depends” function from jQuery Validate. Doesn’t seem to be working. Any tips?
    http://jqueryvalidation.org/validate

     NameOnCard: {
       required:{
          depends: function(element) {
          return $("#CCMethod:checked");
        }
       }
      }
    
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.