Friday, November 16, 2012

jquery – Use Javascript to get the Sentence of a Clicked Word

This is a problem I\’m running into and I\’m not quite sure how to approach it.


Say I have a paragraph:



\"This is a test paragraph. I love cats. Please apply here\"


And I want a user to be able to click any one of the words in a sentence, and then return the entire sentence that contains it.






Rating: 5 out of 5 based on 5 ratings



The post jquery – Use Javascript to get the Sentence of a Clicked Word appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/jquery-use-javascript-to-get-the-sentence-of-a-clicked-word.html

No comments:

Post a Comment