Tuesday 10 September 2013

can't get text highlighted when multiple tags are present

can't get text highlighted when multiple tags are present

So I am trying to highlight some text once the selection around the text
is made and a button is clicked.
This is the implementation of it,
http://jsbin.com/uzILUro/1
Now there is a part of html that has multiple tags and is not getting
selected , I can't figure out the exact issue present.
Just try to select this whole paragraph and try selecting the other parts
too...
"The remainder is r when p is divided by k" means p = kq + r; the integer
q is called the quotient. For instance, "The remainder is 1 when 7 is
divided by 3" means 7 = 3·2 + 1. Dividing both sides of p = kq + r by k
gives the following alternative form p/k = q + r/k.
All the other works except the paragraph above.

No comments:

Post a Comment