Dutbreriereek
New Member
I have 5(say) links inside a \[code\]<div>\[/code\] tag in a php page. When a visitor clicks on any one of the links all the 5 has to be disabled. How to make this possible? I have some idea to make the link disabled on which the user clicks\[code\]<a href="http://stackoverflow.com/questions/10536622/someaction" onClick='this.disabled=true;'>LINK 1</a><a href="http://stackoverflow.com/questions/10536622/someaction" onClick='this.disabled=true;'>LINK 2</a><a href="http://stackoverflow.com/questions/10536622/someaction" onClick='this.disabled=true;'>LINK 3</a><a href="http://stackoverflow.com/questions/10536622/someaction" onClick='this.disabled=true;'>LINK 4</a><a href="http://stackoverflow.com/questions/10536622/someaction" onClick='this.disabled=true;'>LINK 5</a>\[/code\]So if I click LINK 1 only the LINK 1 will be disabled. I need to disable all the 5 links (only these five not the other links in the page).Suggest me simple and best way