[jQuery] Re: Difference with two ways to select elements?

2009-10-19 Thread waseem sabjee
ok, let me understand you clearly. you want to change every option tag within a select to be a specific value ? if the method you mentioned above does not work try this : var obj = $(".myclass"); // use jquery to select your SELECT by class var opts = $("option", obj); // find all option tags with

[jQuery] Re: Difference with two ways to select elements?

2009-10-20 Thread Evgeny Bobovik
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 : > > Hi All > > I am having a quest