Hi,
I have following HTML structure
<table>
<tr>
<div id="getData">
</div>
</tr>
</table>
I am using jquery's html() method to add dynamic contents to div id "getData" as:
$('#valueResult').html(data);
var data ="
<table><tr><td><input type="checkbox" name="test[1]" onclick="doSometing()" /> Test</tr></tr></table>
<table><tr><td><input type="checkbox" name="test[2]" onclick="doSometing()" /> Test</tr></tr></table> "
But the function doSometing() is never executed for any of the dynamically added checkboxes. why so ?
can anyone help me out ?
THX.