Assume that I have some HTML elements like these :
I would rely less on jQuery as it might be disabled by the user, so if you want a CSS solution, you can do it like
#content_div {
pointer-events: none;
cursor: default;
}
Demo
Edit: To be precise, use this declaration #content_div a
Try this:
$("#content_div a").click(function(e) {
e.preventDefault();
});
There are two ways here:
1) $('#content a').css({"pointer-events":"none"});
2) $('#content a').click(function(e){ e.preventDefault(); });
$("#content_div a").css({"color":"#888888", cursor: "default"}).click(function(e){
e.preventDefault();
});
Working Example http://jsfiddle.net/P4Fqq/