I'm using javascript and classic ASP; I want to programmatically disable a hyperlink on the page depending on what is in a textbox. I have it working where it sets the style property of the link to "disabled", graying the link out. This makes the link look disabled, but it still works. I changed the link to do a "void(0)" so it won't go anywhere, but isn't there a way I can actually *disable* the link altogether? Either changing the color of the link and making it so it doesn't do anything when you click, or make it not a hyperlink at all?
Or, can you change the onclick property to return false? It seems like I tried that and it didn't help, though. Any help would be awesome. Thanks!
Or, can you change the onclick property to return false? It seems like I tried that and it didn't help, though. Any help would be awesome. Thanks!