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
Post a Comment