I have a jQuery slider that requires being slid, but if the user drags there mouse past the sliders end, it highlights some of the things on the rest of the page. Now if the user goes to move the slider again, it does this weird thing where it tries to drag the highlighted elements instead of the slider. What I'm looking for is a jQuery or JavaScript blurb that sets nothing to be highlighted. I tried $('body').blur();
but with no avail.
Asked
Active
Viewed 1,275 times
0

Anders
- 8,307
- 9
- 56
- 88

Brian Leishman
- 8,155
- 11
- 57
- 93
-
We need at least some code to try to figure out what is the problem.. – Jose Faeti Nov 25 '11 at 17:13
-
I already knew what the problem was, it was highlighting things and I needed to un-highlight them. Someone posted the answer already anyways – Brian Leishman Nov 25 '11 at 17:39
1 Answers
1
This posting has information on how to clear the text selection with JavaScript: Clear Text Selection with JavaScript
-
Thanks! I searched forever for this but could not find the answer – Brian Leishman Nov 25 '11 at 17:24