Jump to content


Photo

jquery Validation - trying to Validate Radio and checkbox bottons and use ErrorPlacemant to display Error Below each group


  • Please log in to reply
1 reply to this topic

#1 rudyten

rudyten

    Member

  • Member
  • PipPip
  • 45 posts

Posted 28 September 2011 - 12:57 AM

I am trying to get Radio buttons and checkbox buttons to validate.

Error message should appear under the last it's groups of radio/checkbox

The radio buttons requires a selection The check buttons Required one selected minimum

--- On the Media, since all have a unique ID I treated it as a group, but am lost on addMethod to validate group.

--- Also on errorPlacement what do I do if I don't have an Element ID?

My example http://jsbin.com/aqekah/9
  • 0
COBOL Programmer by Day, PHP/XHTML dabbler by night @ tanela.com

#2 rudyten

rudyten

    Member

  • Member
  • PipPip
  • 45 posts

Posted 29 September 2011 - 02:05 PM

ok, I figured it out. Am not fully happy with it, but it is working

http://jsfiddle.net/rudyten/4RnJE/
  • 0
COBOL Programmer by Day, PHP/XHTML dabbler by night @ tanela.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users