javascript function arguments apostrophe
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>…