remove element in javascript
- by Hulk
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..