SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 13th, 2001, 05:01 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Field disabling based on drop down list selection....

Originally posted by : ShiftyOk, for example's sake, let's say I'm creating a submission form where the user selects from a list of names in a drop down box, and then fills out information under that name. My drop down list is linked to a DB table consisting of the ID and 2 text fields (first name, last name). The droplist values are the personIDs, and it displays the lastname/first name in the field. What I would like to accomplish is that depending on what name the user chooses, certain fields will be disabled. Say I have 3 fields, (Title, Organization, Building). If the user selects a name with the last name "smith", then the building field will be disabled. The way I have it done now is that I call a javascript function in the event "onChange" that matches the current PersonID value selected by the drop list with those that correspond to the name "smith" in the table. However, the way I would like to implement it is the approach that I don't know what name corresponds to what ID ahead of time, so I need to be able to see what the current name is when I call the function to enable/disable fields. Basically, instead of comparing against the values of the drop list, is there a way to compare to the text it displays instead?

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Field disabling based on drop down list selection....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT