[jQuery] Re: Selecting text of an object (in this case a span) onclick.

2007-09-16 Thread Theodore Ni
Using a Range object doesn't mean that it becomes selected/highlighted on the page. It is just a way of selecting a several nodes in the document behind the scenes (thought not exactly, it's somewhat like document.getElementById()). As far as I know, there is no way of forcing text on a page to be

[jQuery] Re: Selecting text of an object (in this case a span) onclick.

2007-09-16 Thread Heath
Yeah I realized I wasn't adding the range to the selection object. This is what I finally came up with: $('div.pageInfo span').click( function() { // firefox if(document.createRange) {