Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4366 Vizualizări

Hi, I have a text field.

my_field = fields.Text()

I want to disable copying and paste(ctrl+c, ctrl+v) from intput with java script or python. How i can do it, thanks.

Imagine profil
Abandonează
Cel mai bun răspuns

Hi Pavel,

This thing you can do with the jquery event handlers cut, copy & paste.

Code: 

    $ (document) .ready (function () {

       $ ('# txtInput'). on ("cut copy paste", function (e) {

          e.preventDefault ();

       });

    });

Thanks ....

For more information Contact us:- https: //kanakinfosystems.com/odoo-development-services

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
ian. 21
44
2
dec. 23
12723
3
iul. 22
23095
2
iun. 21
18538
0
sept. 20
3717