redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

how to disable an A element via JS



 
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
Klimapol



Joined: 27 May 2006
Posts: 134
Yo..how do i disable an "A" element via JS?
  Reply with quote


BigDaddy



Joined: 26 May 2006
Posts: 147
Why disable it?
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
Well..i'm using a link as an ajax submit button
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
Don't
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
I would like to disable it when someone does the first click
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
You can put onclick on any element
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
....is it possible to disable it with JS?
I swear..you're that mac user aren't you?
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
No
I use windows and linux
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
But you can do <a href="blah" disabled="disabled">...
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
You haven't given a good reason to use an <a> at all
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
Onclick + XHR = love
  Reply with quote


Klimapol



Joined: 27 May 2006
Posts: 134
I've got my frickin' reasons, alright
I'm using CSS and the :hover stuff
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
You can do that with whatever you have for clicking with the onclick
Stick it in a span
  Reply with quote
Ikopar



Joined: 26 May 2006
Posts: 168
Klimapol no, the disabled property doesnt go on anchors
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
Ikopar...just looked it up
...and you're right
GarethAdems...sorry I called you a mac user
...but I still hate you.
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
Klimapol, and I still think you're doing it wrong
But I don't have an urgency to change my situation
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
I'm not doing it anymore
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group