-1

I am working on php assignment, where data is getting displayed in a tabular form. As per requirement user can only select data from a particular column only. All this is working well on laptop but when it is tested on a mobile phone, SELECT ALL and COPY options allow data of entire page getting copied. I have also tried pointer-events:none, but it is not working as required. Please help....

div17
  • 1
  • you can refer to [this question](http://stackoverflow.com/questions/12315476/how-to-disable-selection-of-text-on-a-web-page) – Julien Mar 15 '17 at 01:56
  • 2
    Possible duplicate of [How to disable selection of text on a web page](http://stackoverflow.com/questions/12315476/how-to-disable-selection-of-text-on-a-web-page) – Md Imran Choudhury Mar 15 '17 at 04:07

1 Answers1

0

You can use JS for this.

$('#column-with-disabled-copy').bind('cut copy paste', function (e) {
    e.preventDefault();
});
BioGenX
  • 402
  • 3
  • 11
  • thanks for your response, but it is not working for me. Is there any way to disable copy option in mobile phone browser. I have already block right click, ctrl +C and other copy options for the particular web page and is working well for any desktop, but my main area of concern is small screen devices. – div17 Mar 16 '17 at 10:10