Try:

 $Calculate = $("#Calculate").eq(0);

Using the [] operator returns the "raw" DOM element. Using eq()
function returns a jQuery "wrapped" object.

Karl Rudd

On 4/4/07, Rick Faircloth <[EMAIL PROTECTED]> 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:[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



Reply via email to