I have this code:
<script>
function del(a){
alert(a);
alert($("#"+a).html());
alert($("#td").html());
alert($("#div").html());
}
</script>
<td id="td">wtf</td>
<div id="div">wtf</div>
<table>
<tr>
<td id="bbbbb">test</td><td><span onclick="del('bbbb');">click</span></td>
</tr>
</table>
Alerts are
bbbbb
test
null
wtf
td content is marked as null (ignored) ?
Why?
proof http://sandbox.phpcode.eu/g/743de.php
UPDATE:
look here and my alert gives me null, too