| 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? |
| |
|
|
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Why disable it? |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| Well..i'm using a link as an ajax submit button |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Don't |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| I would like to disable it when someone does the first click |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| You can put onclick on any element |
| |
|
|
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? |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
No
I use windows and linux |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| But you can do <a href="blah" disabled="disabled">... |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| You haven't given a good reason to use an <a> at all |
| |
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
|
| Onclick + XHR = love |
| |
|
|
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
I've got my frickin' reasons, alright
I'm using CSS and the :hover stuff |
| |
|
|
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 |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| Klimapol no, the disabled property doesnt go on anchors |
| |
|
|
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. |
| |
|
|
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 |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| I'm not doing it anymore |
| |
|
|
|