Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4375 Tampilan

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.

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jan 21
44
2
Des 23
12725
3
Jul 22
23102
2
Jun 21
18550
0
Sep 20
3718