There is an ajax request for dynamically updating parts of a page.page1.php
, to which I refer, contains both a database query and jquery code. But everything is displayed normally, and the jquery code contained in page1.php
does not work.
I do everything very clumsily, but who can decide how to make jquery code work.
$('#knopa1').click(function(){ var user = <?php echo $uss; ?>; var ser = <?php echo $id_s; ?>; $.ajax({ url: "page1.php", data:"user=" + user + "&ser=" + ser, cache: false, success: function(html){ $("#content").html(html); } }); });