That sounds to make sense, I shall try that out.

Thanks chaps. If I'm ever in your area, I'll buy you all a pint.

On 27 May, 18:00, Liam Byrne <l...@onsight.ie> wrote:
> This is definitely the best option, as you can achieve everything that
> you might need
>
> The disabled css class can
> a) have the same text colour as the text
> b) set text-decoration to none
> c) set the cursor the normal one
> d) have an a.disabled:hover pseudo-class to do a & b
>
> Just remember to include a "return false" at the end of the function (as
> appropriate)
>
> L
>
> M.M. wrote:
> > Why don't you just add the class, like this:
>
> > $(".btn").click(function(){
>
> >       if($(this).hasClass('disabled'))
> >             //alert("can't touch this!");
> >       }
> >       else {
> >             $(this).addClass('disabled');
> >             $("#somethingElse").doStuff('slow', function(){
> >                   $('.btn').removeClass('disabled');
> >             });
> >       }
>
> > });
> > ------------------------------------------------------------------------
>
> > No virus found in this incoming message.
> > Checked by AVG -www.avg.com
> > Version: 8.5.339 / Virus Database: 270.12.42/2137 - Release Date: 05/27/09 
> > 07:50:00

Reply via email to