JSFiddle - React, Tailwind, and code Playground

HTML

<div>can you select my text?</div>

<div>can you select my text?</div>

<p>The bottom div's text can not be selected.</p>

CSS

div {
    width: 150px;
    border: 1px solid red;  
    margin-bottom: 15px;
}

JavaScript

$('div:last').bind('selectstart', function(event) {
    event.preventDefault();
});