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

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   rudyten 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 45
  • Joined: 05-January 09

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
COBOL Programmer by Day, PHP/XHTML dabbler by night @ tanela.com
0

#2 User is offline   rudyten 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 45
  • Joined: 05-January 09

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/
COBOL Programmer by Day, PHP/XHTML dabbler by night @ tanela.com
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users