html - JQuery edit div from main file with loaded file script -
i want show div that's in main file.
<html> <body> <script> $(document).ready(function(){ $( "#load_div" ).load( "/resources/load.php" ); }); </script> <div id="load_div"></div> <div id="change" style="display:none;"></div> </body> </html>
and in loaded life:
<html> <body> <script> $("#change").show(); </script> </body> </html>
Comments
Post a Comment