3

Can I only write text input and enter, disable every click or move cursor, just autofocus in text input?

<input autofocus placeholder="RR" name="RR" id="RR" type="text">

Thank you..

2 Answers2

5

put pointer-events : none; in the css

put cursor : not-allowed; /* or none to allow clicks*/ if you want to disable cursor.

add autofocus to autofocus:

<input autofocus placeholder="RR" name="RR" id="RR" type="text" autofocus>
Lee
  • 29,398
  • 28
  • 117
  • 170
0

SOLVED I found this method and worked :

enter link description here

$(document).ready(function() {
        $('body').mousedown(function(e) {
            return false;
        })
    })