Just a thought, maybe set it to be selected with attr("selected",
"selected").

Adrian

On Oct 26, 6:34 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I ajax load a list of options into a Select box and then set the value
> to 'AL', this will display the currently selected options as Alaska,
> it works with Firefox, but not with Safari,  although the selected one
> is 'AL', but it does not show ALASKA in the display, it shows the
> first element in the list which is 'new york', why?
>
> here is the url that you can test:
>
> http://catalina.ph/test2.html
>
> $(document).ready(function(){
>     var s = jQuery("select#state");
>     s.load("http://catalina.ph/states.html";,  function() {
>     jQuery("select#state").val("AL");
>  })
>
> })
>
> <form id="form1" name="form1" method="post" action="">
>   <select name="state" id="state">
>  </select>
> </form>

Reply via email to