zero-zm

更多JS实战记录,请前往:https://www.yuque.com/smallwhy/yyvuqy

JS


// 禁用超链接元素elem ;
document.getElementById(elemID).setAttribute(\'disabled\', \'disabled\');

// 启用超链接元素elem
document.getElementById(elemID).removeAttribute(\'disabled\');

JQuery


// 禁用超链接元素elem
$(elem).attr(\'disabled\', \'disabled\');

// 启用超链接元素elem
$(elem).removeAttr(\'disabled\');

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-06-30
猜你喜欢
  • 2021-09-08
  • 2021-12-12
  • 2021-12-12
  • 2021-12-12
  • 2021-11-23
  • 2021-09-17
  • 2021-07-28
相关资源
相似解决方案