javascript - how can I calculate number of options tag when I get the select box with $this -


i have question how can calculate number of options tag when select box $this.

like that:

 $("select[name=rabetas]").click(function(){    var $this = $(this); 

and...?

how can this?

select <option> elements, , get length.

var numoptions = $this.children().length; 

learn dig through jquery api docs. answer 99% of questions.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -