0

I have some DIVs i.e.:

<div class="mydiv" id="mydiv1"> text1 </div>
<div class="mydiv" id="mydiv2"> text2 </div>
<div class="mydiv" id="mydiv3"> text3 </div>
<div class="mydiv" id="mydiv4"> text4 </div>
<div class="mydiv" id="mydiv5"> text5 </div>

It aligns in one row. I want to select some divs by capturing mouseDown, mouseOver and mouseUp events (looks like dragging my mouse from one div to the next one). I can code it. Also I can color its background to any color. It's easy. But when I try to "select" my divs the text on it also selects but I don't want to see that behaviour. I suppose it's default browser behaviour when we select the text on the page. How to avoid selecting of the text?

JavaRunner
  • 2,455
  • 5
  • 38
  • 52

0 Answers0