I have a select element which gets populated with data from database. This select element is hidden.
What I want is to disable copying of the content of this Select. The only way a user may do copying now is by using Ctrl+A or from menu or by View Source. How to prevent this?
(Note: I do not want the entire page to be freezed. No solution like document.onselectstart= return false kind of. Only the select element contents should not get copied.)
Is this possible? If yes, how?
No, it is not possible.
Restructure your application instead. Do not send sensitive or secret data as part of the HTML.