Re: [jQuery] select form problem

2007-01-24 Thread j. siefer
have you tried this? ...checked="checked"> $("select#s_morning option:eq(" + people + ")").attr("checked", "checked"); -- View this message in context: http://www.nabble.com/select-form-problem-tf3080085.html#a8589550 Sent from the JQuery mailing list archive at Nabble.com. _

[jQuery] select form problem

2007-01-24 Thread enquest
I got a small but annoying problem (still jquery 1.0.4 (old site)) Note the following code: $("li#coffee_morning").click(function(){ var people = $("#people").attr("value"); $("select#s_morning option:eq(" + people + ")")[0].selected = true; // $("select#s_morning option:eq(" +