1: $("select[name^='start_me_']").val(0); - this method set value only
in first founded selector, second method is most optimal to do what
you want - this method found all elements matches your criteria.
   Gk___
Sent from Minsk, Belarus



2009/10/19 Morris Li <morris...@gmail.com>:
>
> Hi All
>
> I am having a question and seeking some help from the group.
>
> What I want to do? - to set the SELECTS that match the citerias to be
> defaul option.
>
> 1: $("select[name^='start_me_']").val(0);
> 2: $("select[name^='start_me_']").each(function() { this.value =
> 0; });
>
> I found 1 doesn't work in IE but FF. Could someone let me konw why?
> And what's the difference between them?
>
> Many thanks
> Morris Li
>

Reply via email to