I have two DIVs with the class "col-lg-6" (bootstrap) which makes them sit side by side. What I am trying to do is to only allow users to select text from one of these DIVs at a time. If he tries to select text from both DIVs in the same time, an error should be displayed.
fiddle:
<div class="container">
<div class="col-lg-6">
First Paragraph
</div>
<br><br>
<div class="col-lg-6">
Second Paragraph
</div>
</div>
The user should only be allowed to select "First Paragraph" OR "Second Paragraph" at a time. Not text from both (eg: "First Paragraph Second" ).
I want this done with javascript or Jquery. Thanks