homepage Welcome to WebmasterWorld Guest from 23.22.76.170
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library : Charter : Moderators: whoisgregg

JavaScript and AJAX Forum

    
Listbox and validation when there is other field
toplisek




msg:4552573
 1:31 pm on Mar 8, 2013 (gmt 0)

I have set JQuery validation and other field. This field (call it field1) can be in the case of Listbox or Text box when users choose option 'Other'.
Source: [bassistance.de...]

How to set additional
1. toogle option to show this field with the AJAX based code like:
myfield2: {
required: function(element) {
return jQuery("#myfield1").val() == 'otherfield1'
}
but field2 depends on field1 and its value (otherfield1)and not other selected options.

2. when there is value inside field2 it should show an error as field1 is already with value.

Is this possible to be achieved?

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved