The simple code explains my problem best:
<html>
<head>
<script>
function showDiv (divId, dat){
document.getElementById(divId).innerHTML = dat ;
document.getElementById(divId).style.display = "block" ;
}
</script>
</head>
<body>
<div onclick="showDiv(1, '<div onclick='showDiv(2, 'test C');'>test B</div>')">test A</div>
<div id="1" style="display:none;"></div>
<div id="2" style="display:none;"></div>
</body>
</html>
the argument by onclick function contains a functions with arguments (strings).
doesn’t work like that.
I think the apostrophes are the problem.
pls help. thx
my code above explains my problem best