Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-12-2005, 02:20 PM   #1 (permalink)
SeetaramaRaju
Registered User
 
Join Date: Aug 2005
Posts: 8
SeetaramaRaju is on a distinguished road
moving items from a list box to another

I've Requirement, where i need to select an item from a list box
and clck on a add button. this should add this item to another list box.

can anybody help me with the syntax

i wrote a javascript like this

function addGroupsRoles(){
var group = document.forms[0].Groups.value;
var role = document.forms[0].Roles.value;
document.forms[0].Groups_Roles.value = new Option(group,role);

alert(group);
alert(role);

}

Its not working. can somebody help me with this please
SeetaramaRaju is offline   Reply With Quote
Old 09-12-2005, 02:31 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
You might wanna check this thread in order to get a feel for creating an option dynamicaly
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
want to get directory files and folders in list box salmanjoo PHP 2 08-17-2005 04:39 PM
linked list problem if13121 Standard C, C++ 3 11-12-2004 09:58 AM
Code For Displaying files in List Box shash MS Technologies ( ASP, VB, C#, .NET ) 1 08-23-2004 10:53 PM
what language is this? sde All Other Coding Languages 10 05-25-2004 04:57 PM


All times are GMT -8. The time now is 03:26 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting