User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,995 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,171 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 8291 | Replies: 8
Join Date: Feb 2005
Posts: 5
Reputation: gaetano is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gaetano gaetano is offline Offline
Newbie Poster

Javascript Arrays

  #1  
Feb 21st, 2005
This was a question in a previous topic but I didn't quite understand the answer.

I display radio buttons from a Array I built in ASP (radioArray) which contains a code/short desc/long desc. When someone clicks a radio button I want to invoke a Javascript function to display the short and long desc directly below the list of radio buttons.

1. should I use onClick="return display_desc(this.selectedIndex)"
OR onchange="return display_desc(this.selectedIndex)"

2. How do I get radioArray into a JS array for the JS function?

Any code examples of would be very helpful since I am a novice at JS.
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 7:36 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC