$(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