remove element in javascript

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-03-22T10:12:51Z Indexed on 2010/03/22 10:21 UTC
Read the original article Hit count: 473

In the below code how to remove the hyperlink after getting the innerHTML

    function test(obj)
    {
         var a=obj.innerHTML
       //              remove obj element here
    }



    $p = $('<a id="name" onclick="javascript:var ele=test(this);">').html( "test" );
    $('#questions').append( $p );

Thanks..

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript