Hi all,

I've got a page where I'm changing the options of a select box and
setting the first one to be selected:
$("#my_select :first-child").attr("selected", true);

It works perfectly with Firefox, Safari and IE7 but doesn't with IE6 !
I've also tried the following without success:
  $("#my_select").children(":first").attr("selected", true);
  $("#my_select :eq(0)").attr("selected", true);
  $("#my_select option:first").attr("selected", true);

I've also had the same bug using other selectors in "children" with
IE6,
like $("#my_select").children("[EMAIL PROTECTED]"+my_id+"]").attr("selected",
true);

Has anyone experienced the same problem?
Or am I doing something wrong?

Thanx for your help -

Ben

Reply via email to