homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved