<div id='panelB'>
<?php include ("inc/items.php");?>
</div>
<script src='../jquery-2.1.1.min.js'></script>
<script src='index.js'></script>
In this scenario everything works.
But later, inside index.js I have:
$("#modals_01 .linkL").click(function(){
$("#panelB").load("inc/items.php", { "category": a});
});
Now, javascript click.functions don't work on divs inside items.php.
I tried to place <script> tags inside items.php too, but in this case click functions (for example slideToggle a div) work twice !?
$('#panelB').on("click", "#modals_01 .linkL", function(){