I have a jQuery switch. It works great.
<ul> <li>Go to the store</li> <li>Pick up dinner</li> <li>Debug crash</li> <li>Take a jog</li> </ul>
$("li").toggle( function () { $(this).css({"list-style-type":"disc", "color":"blue"}); }, function () { $(this).css({"list-style-type":"disc", "color":"red"}); }, function () { $(this).css({"list-style-type":"", "color":""}); } );
The problem is that when I make a quick click, it selects the text in it. Is there any way to stop text selection?
javascript jquery text
Reigel Jan 25 2018-10-25T00: 00
source share