function insertChildDiv(parentId)
{
var ChildComment = new Element('div', {'class':'padding'});
ChildComment.update('testing');
$().insert(ChildComment);
}
i want the value of parentId inside the $() in the line
$().insert(ChildComment);
i already tried
$('parentId').insert(ChildComment);
but it evaluates the parentId as string and is looking for a div with an element id of "parentId" so the error will be $("parentId") is null
also tried
$(parentId).insert(ChildComment);
but its returning the error "$(parentId).insert is not a function"
btw the script is called by this html
<a href="#" onclick="insertChildDiv(123456)" id="123456more">Replies and more</a>