Re: Re[2]: [jQuery] To make an Id using a variable

2009-12-19 Thread Richard D. Worth
var lang = 'fra'; $('#lang option[value=' + lang + ']').attr('selected', 'selected'); or var lang = 'deu'; $('#lang').val(lang); - Richard On Sat, Dec 19, 2009 at 3:35 PM, Andre Polykanine wrote: > Hello Richard and all, > > Yepp, it works) > and if I want to do the same with a select box? >

Re[2]: [jQuery] To make an Id using a variable

2009-12-19 Thread Andre Polykanine
Hello Richard and all, Yepp, it works) and if I want to do the same with a select box? English French German Say, I have it previously set to French. Do I need to make a loop or I can do it in the same simple way?