How to remove “href” with Jquery?

后端 未结 4 2064
旧时难觅i
旧时难觅i 2021-01-30 10:26
Qualify

After \"href\" is removed, is \"Qualify\"

4条回答
  •  失恋的感觉
    2021-01-30 10:44

    If you wanted to remove the href, change the cursor and also prevent clicking on it, this should work:

    $("a").attr('href', '').css({'cursor': 'pointer', 'pointer-events' : 'none'});

提交回复
热议问题