I met a problem with js. The js function appendTo() is not work!
my js code is like this:
my browser console shows that everythings is as planed:
here is the problem , my html element tbody doesn't contain any things as followed:
why? how can i fix this?
Although HTML id is allowed to contain dot and colon characters, the fact that you are using jQuery makes it doesn't work because dot and colon have special meaning in a a selector context.
The following native JS will work:
document.getElementById('tb_10.3.3.186:32222').innerHTML += html;
But if you still want to use jQuery, you need to remove the dot (.
) and colon (:
) from your id
.