On Apr 4, 9:24 pm, LinkGuru <[email protected]> wrote:
> This turned out to be the solution................
>
> var drp = $('#dropdown');
> drp.children().each(function() {
> $(this).removeAttr("selected");}).end().append("<option value='"+insertid+"'
>
> selected='selected'>"+project+"</option>");
>
> I am sure jselect would have worked too (possibly a bit of an
> overkill?), so thanks to RvFlash

Why not ditch all that and just set the selected property of the
option to true?

--
Rob

Reply via email to