Re: How to select a tag in javascript ?

  •  03-01-2006, 5:10 AM

    Re: How to select a tag in javascript ?

    Thanks for your response, Adam, but i think my question wasn't clear.
     
    My call to SearchSelectionElement just works fine.
    So why should i use GetSelectionElement(tagname) ?
     
    My problem is to replace or remove this element, when the user edits an existing link, without selecting anything.
    When the user validates his changes, i use pasteHTML, and it replaces only the selection. So it creates a new link.
    How can i extend the selection to the entire element, so that my pasteHTML replaces the previous link ?
     
View Complete Thread