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="var ele=test(this);">').html( "test" );
$('#questions').append( $p );
Thanks..