enable/disable are for form fields only.
Now you're talking about using CSS classes.

CSS -
.enabled{ /* CSS */ }
.disabled{ /* CSS */ }

SCRIPT -
$('#address').removeClass('disabled').addClass('enabled'); // enables
$('#address').removeClass('enabled').addClass('disabled'); // enables

You have to just play around with it...

Diego A.

On Apr 16, 9:28 am, "wyo" <[EMAIL PROTECTED]> wrote:
> On 16 Apr., 00:21, "Brian Cherne" <[EMAIL PROTECTED]> wrote:> Good point, 
> Paul. Assuming it's not too much work, changing the IMG to an A
> > tag would take care of most your problems... You wouldn't need ugly js hacks
> > to get IE to understand "hover" and the only thing you'd need to do is
>
> Okay but how about if I want to "disable" such an address element? I
> haven't found an enabe()/disable() function in the jQuery docs.
>
> O. Wyss

Reply via email to