C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » ASP.NET WebForms »

Javascript for deleting Selected Combo items


Posted Date: 04 May 2007    Resource Type: Code Snippets    Category: ASP.NET WebForms
Author: PadmaMember Level: Diamond    
Rating: 1 out of 5Points: 10



This will show, how to delete all selected combo items in javascript


function SelectedComboItems()
{
var selItem = document.getElementById('ddl');
var i;
for (i = selItem.length - 1; i>=0; i--)
{
if (selItem.options[i].selected)
{
selItem.remove(i);
}
}
}

Add the above javascript function button Attributes in Code behind file.

btnRemove.Attributes.Add("onclick","SelectedComboItems();")







Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Check Browser Capabilities In ASP.Net
Previous Resource: Automatically generated autonumber in datagarid
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use