Hey..
I just want to know one thing..
How can I call any div that is included in a jQuery template on another js file.
For example:
- if I have this code in my php file:
<script id="template-upload" type="text/x-tmpl">
<div class="test"></div>
</script>
- and I want to call this div in a new js file:
$(document).ready(function () {
$(".test").click(function () {
alert("done");
});
});
WHY IT DID NOT EFFECT ????
Thanks.