I'm looking to prevent users from selecting the content of an input control via CSS. I've tried adding the following attributes to the control:
#editContainer
{
user-select: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
}
<div id='editContainer'>
<input id='daysInput' />
<span id='daysString'></span>
<input id='hoursInput' />
<span>:</span>
<input id='minuteInput' />
</div>
Despite my efforts, it doesn't seem to be working...
Can anyone offer a solution to prevent users from selecting content within the controls?