JS
// 禁用超链接元素elem ;document.getElementById(elemID).setAttribute(‘disabled‘, ‘disabled‘);// 启用超链接元素elemdocument.getElementById(elemID).removeAttribute(‘disabled‘);
JQuery
// 禁用超链接元素elem$(elem).attr(‘disabled‘, ‘disabled‘);// 启用超链接元素elem$(elem).removeAttr(‘disabled‘);
JS/JQuery 禁用超链接a
原文地址:https://www.cnblogs.com/zero-zm/p/10014655.html