I am using a html input text and i want to disable the onselect() event. i have tried the following but with no luck:
*onselect="event.returnValue=false";
*onselect="return false";
*onselect="prevent(event)" with a event.preventDefault()
is there anyway ?
create a global boolean variable which can be set from outside. You can set this boolean variable with another element to “disable” your onselect event.
in head, you put this part:
in body: you should have a component which sets the “eventEnabled” variable, like this:
Furthermore, you have something like onSelect=”onSelectEvent();”, which you never change.