Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,374 Programmers. There are 1,411 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Changing the selection mode of ListBox from Multiple to Single using j

 
Reply to this topicStart new topic

Changing the selection mode of ListBox from Multiple to Single using j

aastha.arora
post 27 Apr, 2008 - 11:21 PM
Post #1


New D.I.C Head

*
Joined: 27 Apr, 2008
Posts: 1



can anyone suggest me how to change the selection mode of listBox from multiple to single using Javascript?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


someone1
post 28 Apr, 2008 - 12:10 PM
Post #2


New D.I.C Head

*
Joined: 28 Apr, 2008
Posts: 6

document.getElementById({ID OF YOUR SELECT TAG HERE}).multiple = true (to make from single to multiple) or set it to false to make it single again.

I've tried this in Firefox only, it should work in IE though
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 02:45AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month