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=<?=$f[Type]?>;
// Say it was 2. Then the id must be #utype2
$("#'utype'+t").attr("checked", "checked");

What am I doing wrong?
Maybe there's a way to do the same using the Value attribute of the
input tag?

-- 
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

Reply via email to