aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Disabling Anchor Tags Using jQuery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disabling Anchor Tags Using jQuery" Watch "Disabling Anchor Tags Using jQuery" New topic
Author

Disabling Anchor Tags Using jQuery

Kavisha Paranamana
Greenhorn

Joined: Jul 30, 2011
Posts: 25
Hello

I'm developing a web application in these days. I use an <a> tag which is stylized with CSS as a button. I need to make it disabled once the user clicks on it, using jQuery. I tried setting up something like $('#id').attr("disabled", "disabled"); but that didn't work. Does anyone know how to use jquery to disable an anchor tag?


Kavisha Paranamana - Homepage
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Kavisha Paranamana
Greenhorn

Joined: Jul 30, 2011
Posts: 25
That works perfectly, Eric. Thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disabling Anchor Tags Using jQuery