As of 1.0.3 I believe you can do this with straight HTML across all browsers.

$('#optionElm').append('<option value="">Name</option>');

--
Brandon Aaron

On 1/9/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
>
>  Hi folks,
>
>  I'm using Sam Collett's plug-in to add and remove options from a select
> list, and under jQuery 1.1a it breaks.
>
>  for(i = 0; i < ClientData.shifts.length; i++){
>    $("##Shift_ID").addOption(ClientData.shifts[i].shiftcode + "~" +
> ClientData.shifts[i].shiftid + "~" + ClientData.shifts[i].shiftname,
> ClientData.shifts[i].shiftname, false);
>  }
>
>  The above code used to work and now it doesn't. The specific error is
> "object doesn't support this property or method".
>
>  Any ideas? Short enough, Jörn? ;o)
>
>  Chris
>
>  --
> http://www.cjordan.info
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to