Nobody any clue why "$('#mySelect option[value="' + myValue + '"]').attr('selected', 'selected');" of code is throwing an error?
On 18 Aug., 16:32, north <ollo...@web.de> wrote: > Hi Giovanni, > > this seems to work as well. But somehow I'm getting the same error > (just connected to another line of code). > > Mabye I'll have to tear the whole script apart and start over... :) > > Cheers > > On 18 Aug., 16:16, Giovanni Battista Lenoci <gian...@gmail.com> wrote: > > >northha scritto:> $('#mySelect option[value="' + myValue + > >'"]').attr('selected', > > > 'selected'); > > > Maybe this is not what you want to do, but why don't you use this? > > > $('#mySelect').val(myValue); > > > Bye > > > -- > > gianiaz.net - web solutions > > via piedo, 58 - 23020 tresivio (so) - italy > > +39 347 7196482 > >