how to get html text covered by other div

zniv

New Member
Here's the thing. I can get selected text with that solution: How to get selected(user-highlighted) text in contenteditable element and replace it?But now i have a problem. I'm adding to website divs with different colors to mark some parts of page (i'm setting just position=absolute, top, left, width, height, backgroundColor and opacity) and now when i want to select marked text, selected is that div (which i guess have higher z-index or something else is placing it over other html). And now when i want to get selected text i'm getting nothing. Not even that div. Just null... Any idea how can i get text covered by that div?And all these things i'm doing in UIWebView component in iOS but that's not relevant, i think.
 
Back
Top