locked
How To COUNT No of items in dropdownlist? RRS feed

  • Question

  • i have a dropdownlist in infopath. i want the count of dropdownlist items

    Wednesday, July 6, 2011 3:57 AM

All replies

  • If your dropdownlist is named list, try list.options.count.
    Friday, July 22, 2011 7:01 PM
  • try this

    <select id="id_select" name="name_select">.....option.....</select> 
     
    var ctrl = document.getElementById('id_select'); 
    alert(ctrl.options.length); 

    or

    name_select.options.length 



    Mark the best replies as answers. your's raghu krishna kuchi
    http://www.cute-ads.blogspot.com

    Monday, July 25, 2011 4:03 AM