On 21 Sep 2010, at 21:39, Wade Preston Shearer wrote: > On 21 Sep 2010, at 21:30, Jordan Schatz wrote: > >> http://www.codetoad.com/javascript_get_selected_text.asp >> http://javascript.internet.com/page-details/highlighted-text.html >> But now I am thinking thats not what you where after... you don't want >> the selected text, but rather the id/name of its parent element? >> Maybe http://forums.asp.net/p/1533440/3717868.aspx > > Correct… I want the parent element(s) that surround the selected text. >
Perhaps you could wildcard the onclick function to watch for any click and then read the id of what was clicked and check the dom for parents??? _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
