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';
$('
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
.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
$("#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.
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
5 matches
Mail list logo