[jQuery] Re: how to make links unclickable

2007-11-07 Thread fambizzari
This should replace all links with their link text: $("a.noclick").each(function(){ $(this).replaceWith($(this).text());});

[jQuery] Re: how to make links unclickable

2007-11-07 Thread Bhaarat Sharma
Thanks a lot to both of you. That was really helpfull and got the job done. I've implemented CSS along with return false. There is no dynamic content on the site but the above example is great for my future reference On Nov 7, 3:01 pm, Flesler <[EMAIL PROTECTED]> wrote: > I don't see cursor:arrow

[jQuery] Re: how to make links unclickable

2007-11-07 Thread Flesler
I don't see cursor:arrow working as expected, I tested in Firefox 2. Here is my solution, it will even work for dynamically added links. The cursor can be removed by css, that will always be faster than JS.. just add this ** a{ text-decoration:none;/*

[jQuery] Re: how to make links unclickable

2007-11-07 Thread Andy Matthews
Yes. return false won't make the link "unclickable", but it will prevent the default action from occurring. You can do this to also remove the hand cursor: $("a").css('cursor','arrow').click(function(){ return false; }); -Original Message- From: jquery-en@googlegroups.com [mailto:[E