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?
>
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?
2 matches
Mail list logo