I am a JQuery newbie so I am probably mistaken.

I just ran into a problem with ".val" (grabbed it from an example).  If I
remember correctly I changed it to ".value" and it worked.


-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of James
Sent: Tuesday, October 13, 2009 9:41 PM
To: jQuery (English)
Subject: [jQuery] Re: ie6 and .val() issue


Maybe it's this then:
<option value="default">Default</default>

</default> is suppose to be </option>

On Oct 13, 3:27 pm, Daniel Murker <dmur...@gmail.com> wrote:
> $(document).ready(function(){
>
> and
>
> $().ready(function()
>
> are interchangeable.  that's not what's throwing the error.
>
> This line is:
>
>  $("#selectbox").val("value");
>
> On Oct 13, 5:36 pm, James <james.gp....@gmail.com> wrote:
>
> > The line is:
>
> > $(document).ready(function(){
>
> > On Oct 13, 2:08 pm, Daniel Murker <dmur...@gmail.com> wrote:
>
> > > I've come across an issue where doing something along the lines of
>
> > > $().ready(function(){
> > >      $("#selectbox").val("value");
>
> > > });
>
> > > Throws the following error in IE6
>
> > > Could not set the Selected Property: Unspecified Error.
>
> > > $("#selectbox") referrs to the following html.
>
> > > <select id="selectbox">
> > >      <option value="default">Default</default>
> > >      <option value="value">TEST</option>
> > > </select>
>
> > > Anyone know a way around this?
>
>

Reply via email to