Hi Rick,
If principal_status and interest_status and years_status are supposed
to be variables, I don't think you're going to want them in quotes.
Try, for example, $(principal_status).val() instead. Otherwise,
jQuery is going to treat them as DOM elements.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 3, 2007, at 9:10 PM, Rick Faircloth wrote:
Well... if you're going to be picky... ;o)
Sorry... here's the code:
function toggleButton() {
$Calculate = $("#Calculate")[0];
if($("principal_status").val() == "true"
&&($("interest_status").val() == "true"
&&($("years_status").val() == "true")))
{
$Calculate.disabled = false;
}
else
{
$Calculate.disabled = true;
}
}
-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery-
[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Tuesday, April 03, 2007 9:02 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Does this code look correct?
There's no code here Rick. :o)
Rey
Rick Faircloth wrote:
Hi, all...
Does the code look correct?
Would it work to disable/enable a form button
assuming the variables "principal_status",
"interest_status", and "years_status" are being
returned properly?
Thanks,
Rick
--
BrightLight Development, LLC.
954-775-1111 (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com