re.polykanine; ICQ: 191749952
Twitter: m_elensule
- Original message -
From: Leonardo K
To: jquery-en@googlegroups.com
Date: Tuesday, December 15, 2009, 3:58:52 PM
Subject: [jQuery] Validation plugin: required by condition
Something like this:
$(form).validate({
rules:{
a
Something like this:
$(form).validate({
rules:{
announce: {
required: function(element) {
var value = $("input[name='blog-entry']").val();
if ( val == 'publication' || val == 'post' ){
return true;
}e
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 manag
3 matches
Mail list logo