79656140

Date: 2025-06-06 15:33:49
Score: 1
Natty:
Report link

I want to prevent default for some elements, so i add css class .prevent-default to them:

$(".prevent-default").on("click", function (event) {
    event.preventDefault();
});

There are too many similar posts on this topic, but I thought this might be useful to someone.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Zolfaghari