[jQuery] Validation plugin: required by condition

2009-12-15 Thread Andre Polykanine
Hello everyone, I have a text field (textarea) that is required only if a specific radio button in the group is checked. Here's the explanation: a blog entry may be a personal entry, a publication and a news post. If it's a news post or a publication, then the announce is required. How can I

Re: [jQuery] Validation plugin: required by condition

2009-12-15 Thread Leonardo K
Something like this: input type=radio name=blog-entry value=personal-entry/ input type=radio name=blog-entry value=publication/ input type=radio name=blog-entry value=post/ textarea name=announce/textarea $(form).validate({ rules:{ announce: { required: function(element)

Re[2]: [jQuery] Validation plugin: required by condition

2009-12-15 Thread Andre Polykanine
- From: Leonardo K leo...@gmail.com To: jquery-en@googlegroups.com jquery-en@googlegroups.com Date: Tuesday, December 15, 2009, 3:58:52 PM Subject: [jQuery] Validation plugin: required by condition Something like this: input type=radio name=blog-entry value=personal-entry/ input type=radio