Thanks very much for your reply. OK following your advice I tried the following
$('form#assignUsersForm').submit(function() { alert("submit fired"); $('select#assignedUserList option').each(function(i) { alert("each fired"); $(this).attr("selected", "selected"); }); }); Added the elements form & select selectors and the alerts. All works as it should in FF and others but still not in IE7 & 6 the submit function isn't getting fired so the each never gets a chance. Ill put together a working example so you can see the full thing. Thanks, Richard On Jan 14, 9:27 pm, pedalpete <p...@hearwhere.com> wrote: > Can you give a bit more detail? > > Is the submit not firing? or the .each? > > I always like to give my selectors an element+class/id, apparently it > is more efficient, and I have noticed that some browses (it seems only > sometimes) will miss some elements when only using the id/class. > > But throw some alerts in there so you can see what is not firing, and > then we can go from there.