Hi, I'm trying to reproduce the altclickanswers on nytimes website, but with jQuery. Basically, when you dblclick on a word, it fires a popup with the selected word for query.
My problem is "How to get the selected word" ? Which selector can i use ? var the_selected_word = ???; $(the_selected_word).dblclick(function () { var the_url = "http://www.google.com/search?q= + the_selected_word +"; window.open(the_url,'name of the popup','height=450,width=800,location,menubar,toolbar,status,resizable,scrollbars'); }); thank you for your comprehension :)