Nevermind, I actually figured it out.

I used: ("#non_academic").append("<option value=\"" + folderItemId +
"\">" + folderName + "</option>");

Where formItemId and folderName were my variables.  Worked perfectly!

On Apr 24, 9:29 pm, hubbs <[EMAIL PROTECTED]> wrote:
> I would like to know how to append a new option to a select list.  I
> would also need to retreive the option value and value between the
> <option></option> tags, and create a new option:
>
> <select name="non_academic" id="non_academic">
>   <option value=""></option>
>   <option value="19368">ghhfh</option>
>   <option value="19369">test</option>
>   <option value="19370">test</option>
> </select>
>
> I would like to be able to insert something like   <option
> value="19371">test2</option> Both 19371 and test2 would be pulled from
> variables that have been set.  Is this possible?
>
> I looked at the prepend and append option, but I was unsure how to
> achieve this.
>
> Thanks!

Reply via email to