Get the tag name at caret

  •  02-08-2010, 9:23 AM

    Get the tag name at caret

    Hi,
    I wonder if it is possible to get the tag name where the caret is positioned. 
     
    Assume we have this line of html:
    <DIV><p>My caret I is here</p></DIV>
    assume the caret is at the red mark .
     can we programmatically get the tag name "p"?
     
    /Thanks
View Complete Thread