File 1.php load an external php file (2.php) inside a div called
<div id="myoutput"></div>
I load 2.php (template) using load().
this template contain a line like
<a href="#" id="showall">all</a>
but when i click "all" the script doesn't work.
if i put
<a href="#" id="showall">all</a>
inside 1.php all work fine. inside 2.php not.
this is the click function
$('#showall').click(function() {
$( "#myoutput" ).hide();
$('.rowresult').show();
});
How to access to the DOM on an external file?