hiere is my code, within a loop. I want to solve my closure problem. But on click I receive an error message "Syntac Error". Any help. Thanks in advance.
var html = '<div style="margin-top:10px">';
html += '<div class="weiter"> Kartenauswahl in die Recherche übernehmen </div>';
html += '<div class="weiter" style="display:block;clear:left;margin-top:7px"
onclick="function(obj) { return getChildObject(obj)}(obj)">Weiter</div>';
html += '</div>';