I have this code, which gets an clicked div id:
$(document).ready(function(){
$(".playitem").click(function(){
pos = this.id;
alert(pos);
});
});
And this is html code:
<div class="playitem" id="item-123456">
code here...
</div>
This is how document dynamically loaded:
$("#videoplaylist .left").load("extern1.htm");
Everything is working while this html code is in current html file. But, if I dynamically load an external html document with the same html code and to the same div this jQuery function stops working.
Any advice? Thank you in advance!