Find all link in a div element and disable them all

前端 未结 4 1960
夕颜
夕颜 2021-02-15 16:15

Assume that I have some HTML elements like these :

Click me
4条回答
  •  名媛妹妹
    2021-02-15 16:52

    $("#content_div a").css({"color":"#888888", cursor: "default"}).click(function(e){
       e.preventDefault();
    });
    

    Working Example http://jsfiddle.net/P4Fqq/

提交回复
热议问题