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

2009-12-19 Thread Andre Polykanine
y-en@googlegroups.com Date: Saturday, December 19, 2009, 10:46:46 PM Subject: [jQuery] To make an Id using a variable var lang = 'fra'; $('#lang option[value=' + lang + ']').attr('selected', 'selected'); or var lang = 'deu'; $('

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

2009-12-19 Thread Richard D. Worth
e simple way? > > -- > With best regards from Ukraine, > Andre > Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ > jabber.org > Yahoo! messenger: andre.polykanine; ICQ: 191749952 > Twitter: m_elensule > > - Original message - > From: Ri

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

2009-12-19 Thread Andre Polykanine
.com Date: Saturday, December 19, 2009, 10:24:40 PM Subject: [jQuery] To make an Id using a variable $("#utype" + t) - Richard On Sat, Dec 19, 2009 at 3:18 PM, Andre Polykanine wrote: > Hello everyone, > What I'm trying to do is to make a radio button checked depending on a

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

2009-12-19 Thread Richard D. Worth
$("#utype" + t) - Richard On Sat, Dec 19, 2009 at 3:18 PM, Andre Polykanine wrote: > Hello everyone, > What I'm trying to do is to make a radio button checked depending on a > variable gotten via PHP. > Here's the code: > // What radio button was checked previously? > var t=; > // Say it was 2.

[jQuery] To make an Id using a variable

2009-12-19 Thread Andre Polykanine
Hello everyone, What I'm trying to do is to make a radio button checked depending on a variable gotten via PHP. Here's the code: // What radio button was checked previously? var t=; // Say it was 2. Then the id must be #utype2 $("#'utype'+t").attr("checked", "checked"); What am I doing wrong? Mayb