Current location: Hot Scripts Forums » General Web Coding » JavaScript » drop down issue


drop down issue

Reply
  #1 (permalink)  
Old 05-31-06, 06:32 AM
prince prince is offline
Newbie Coder
 
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
drop down issue

When a student select course from first drop down then credit from second drop down appear onchange='set credit()' but day/time from third drop down doesent appear.....my question how will i set javascript onchange function for two drop down.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-31-06, 10:57 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Posting some code might help finding out what's wrong...
But if you just want to run many functions onchange, do
Code:
onchange="doSomething();doSomethingElse();doEvenMoreThings()"
The functions will be executed in left to right order.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-01-06, 04:34 AM
prince prince is offline
Newbie Coder
 
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Thank u
here is my code


Code:
function setCredit(txtobj,txt)
{
var mystr=new String(txt);
var arrStr;
arrStr=mystr.split("#");
txtobj.value=arrStr[0];
}

<select name='cc[]' id="cc[]" onChange="setCredit(cr0,this.value)">
<option value=''>Select one</option>

// to choose a data from a drop down another drop down with credit activate
// How I set fuction here to activate another (3rd one) dropdown with day/time will be activate..


Plz advice me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto populate drop down list? awiekupo PHP 6 10-31-09 12:47 PM
[PAID] Dynamic Drop Down Menu Coconut Job Offers & Assistance 0 05-08-06 01:16 PM
Drop down trouble phplearner PHP 1 07-15-05 01:39 PM
error issue need help natman PHP 0 02-28-05 01:30 PM
drop down menu problem !!! nurqeen PHP 1 02-08-04 09:07 PM


All times are GMT -5. The time now is 10:18 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.