I want to call a function by creating a html table. The function I want to call is called setHooks. more precisely this time I want to call the function (setHooks) if my table parts was added so the function can check if the checkbox needs a hook HTML
'<td><form action=""><div class="myClass"><label><input type="checkbox" name="box'+index+'" '+setHooks('daten.identification','MyBox'+pageForBoxes+''+index) id="MyBox'+pageForBoxes+''+index+'" value="'+daten.identification+'" > Anzeigen</label></div></form></td></tr>');
thats what I tried but it won't work can u help me please ?
JS
` function setHooks(id,myBox){
if(boxArr.indexof(id) != -1){
$(myBox).attr('checked', true)
}
}`
I want to call a function by creating a html table.