Yes, something like:

$('a').removeClass('currentClass').addClass('newClass').click(function(){
return false;
});

.removeClass() is only needed if you want to remove a class.

On 11/8/07, shapper <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I have an anchor. I want to change its CSS class and also disable the
> clicking when it is clicked.
>
> Can I do this with JQuery?
>
> Thanks,
> Miguel
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com

Reply via email to