How to disable left click of the mouse?

Write TIC-TAC-toe in JS.
After a player's turn during the half-second goes to the computer. Need to ban a player this time, ie click on empty field. How can I do this?
July 12th 19 at 17:17
2 answers
July 12th 19 at 17:19
Disable the click event handler you previously set –, or originally to do a one-off event –
July 12th 19 at 17:21
$('.block').on('click', function() {
 return false;

Where .block free to move the field.

Find more questions by tags JavaScriptjQuery