【发布时间】:2014-01-30 19:14:28
【问题描述】:
我想在点击链接时禁用链接,这是我的代码:
<a href="?cmd=7" style="color:#00F; margin-left:15px; text-decoration:underline">Past 7 Days</a>
<a href="?cmd=14" style="color:#00F; margin-left:15px; text-decoration:underline">Past 14 Days</a>
<a href="?cmd=30" style="color:#00F; margin-left:15px; text-decoration:underline">Past 30 Days</a>
<a href="?cmd=custom" style="color:#00F; margin-left:15px; text-decoration:underline">Set A Custom Date Range</a>
我希望当我单击过去 7 天的链接时,此链接被禁用或其他链接已启用,如果我单击过去 14 天的链接,则启用过去 7 天的链接并禁用过去 14 天的链接。我该怎么做这个?
【问题讨论】:
-
只有我一个人认为你想在页面加载时实现效果吗?
-
没有一个答案可以帮助我
标签: javascript php jquery