Vinit Patel

Archive for the ‘JQuery’ Category

Limited Selection from Listbox

Posted by: Vinit on: February 9, 2010

Hi, If I want to select only limited(2) items from the listbox then using Jquery use the below code, <head id=”Head1″ > <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js”></script> </head> <body> <form runat=”server”> <asp:ListBox ID=”ListBox1″ runat=”server” SelectionMode=”Multiple”> <asp:ListItem Text=”Item1″></asp:ListItem> <asp:ListItem Text=”Item2″></asp:ListItem> <asp:ListItem Text=”Item3″></asp:ListItem> <asp:ListItem Text=”Item4″></asp:ListItem> </asp:ListBox> </form> </body> <script type=”text/javascript”> $(‘#<%= ListBox1.ClientID %>’).change(function() { if ($(this).find(‘option:selected’).length > 2) { [...]

Hi, http://www.aspsnippets.com/post/2009/08/19/Multiple-File-Uploads-Gmail-Style-using-JQuery-and-ASPNet.aspx The above link is giving you the brief information on that.


Calendar

May 2012
M T W T F S S
« Jan    
 123456
78910111213
14151617181920
21222324252627
28293031  

Stats Of Blog

  • 2,408 hits

Cluster Map

Follow

Get every new post delivered to your Inbox.