links in javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sukumaster
    New Member
    • Jul 2007
    • 19

    links in javascript

    hi

    I have more than one link in a html form.If I click anyone of the link then all other links should be disabled. how can i do it?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Use getElementsByTa gName("a") to get all the links and add:
    [CODE=javascript]onclick="return false;"[/CODE] to disable the links. Pass the current link to the function to make sure that the current one is not disabled.

    Comment

    Working...