Webhun Blog
Webhun will try to help on variety of technologies. We hope this will become a good source for their troubled computer problems.

JQuery Tips with Select List Values and related issues!

November 27, 2009 08:34 by ZeroInfinity
Bookmark and Share

1. Count of all the list options in a given Select List

var cntSelect = $(‘#selectVal option’).length;

2. Count of all the list options that they have selected in a given Select List.

var cntSelected = $(‘#selectVal option:selected’).length;

3, Removing all the lists in the Select List.

$(‘#selectVal option’).remove();

4. Remove only the selected options in Select List

$(‘#selectVal option:selected’).remove();

 

More to come. If you have any questions, please let me know.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

SoftShores is a great company!

November 3, 2009 03:01 by ZeroInfinity
Bookmark and Share

I recommend everybody to use SoftShores services who are looking for a professional developers, contractors.



Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed