javascript - jQuery functions not working after JS innerHTML property -
i using code in application:
document.getelementbyid("inventory_box").innerhtml = "<img src='./img/rock.gif' id='test' />"; the #inventory_box element present already, spews out img #inventory_box.
what want able click appeared img id name test, won't work like:
$("#test").click(function() { // run });
Comments
Post a Comment