How do I disable mousedown for the entire block?

  • 0
    I wondered how to run mousedown inside the .mian_block except for the .content_block and its content

    Catch every time ! $ (e.target) .hasClass ("content_block") is too energy consuming for each item
    JavaScript Finn Downs, Apr 28, 2020

  • 1 Answers
  • 0
    $ ("body") .on ('mousedown', '.mian_block: not (.content_block)', function (e) {

    alert ('f');

    })
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!