SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old February 9th, 2005, 06:24 PM
paulsworld2 paulsworld2 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 paulsworld2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to paulsworld2 Send a message via Yahoo to paulsworld2
Can anybody help with javascript

Hello,
I am trying to do a hidden field that pops up when you select "other" from a drop down menu. I can make the field disappear but I can't make it pop up when other is selected. I don't have trouble with this using radio buttons but that isn't what the want. Here is my code.

<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
function HideFields() {
document.all["tblOther"].style.display='none';
}
function txtOther() {
var otherfunc=other();
if (otherfunc=="Other") {
document.all["tblOther"].style.visibility='visible';
document.all["otherFunct"].focus();
}
else {
document.all["tblOther"].style.visibility='hidden';
}
}

</script>'

In the form field I am using this to activate onselect='txtOther();'

Thanks for your help

Reply With Quote
  #2  
Old February 10th, 2005, 11:24 PM
spud spud is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Melbourne, Australia
Posts: 163 spud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Can anybody help with javascript

try style.display = 'block'; rather than visibility

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Can anybody help with javascript


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 4 hosted by Hostway