Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2007, 04:48 AM
Authorized User
 
Join Date: Aug 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default geting items of listbox which are added using js

hi friends

i have added some items to listbox
using javascript

how can i
get items from listbox which are added through javascript


thanks

 
Old February 7th, 2007, 05:56 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Please do not start a new thread for an existing issue, it creates unecessary posts........

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old February 24th, 2007, 03:00 AM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by k.manisha
 hi friends

i have added some items to listbox
using javascript

how can i
get items from listbox which are added through javascript


thanks

may this code ll help u... ;)

function maheshv()
{
var path1 = document.getElementById('ListBoxName')
var items = new Array
for (var i = 0; i < path1.options.length; i++){
    if (path1.options[i].selected)
      items[items.length] = path1.options[i].text;
            }
alert(items)
}






Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting all listbox items Lucy_H85 C# 2005 2 December 1st, 2009 05:36 AM
Moving Items up and down in a listbox Brendan Bartley Access 15 September 18th, 2007 06:42 AM
UNSelect Items in ListBox mmcdonal Access VBA 7 June 21st, 2007 08:09 AM
Unhighlight Listbox Items selevanm Access VBA 1 March 7th, 2007 01:39 PM
Saving Listbox Items antonducabre VB.NET 2002/2003 Basics 1 July 16th, 2003 12:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.