Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

html/javascript - Enable/Disable links


  • Please log in to reply
2 replies to this topic

#1 Amri5h


    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 07 June 2009 - 12:31 PM

Hi Everyone,

Im trying to create a simple enable/disable code but can't actually do it.

So basically lets say we have 3 labels which links to a specific URL each

Label1 Label2 Label3

initially label1 is disabled and label2 and label3 are enabled

I want when you click on label2 it gets disabled then label1 and label3 gets enabled and goes on like that.

Can anyone please help.

Thanks ...
  • 0

#2 Guest_Jordan_*

  • Guest

Posted 07 June 2009 - 06:35 PM

Here is how you can remove links: Dynamically Remove HREF from the Anchor Tag
Here is how you can add links: createElement('a') with a javascript href - Peterbe.com (Peter Bengtsson on Python, Zope, Kung Fu, London and photos)
  • 0

#3 Amri5h


    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 08 June 2009 - 04:01 PM

thanks very much thats cool
  • 0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download