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); } }); }); 

    1 answer 1

    After the team

      $("#content").html(html); 

    execute the command

      $('#content').trigger('create'); 
    • no, it does not work - Alex Prosto
    • @AlexProsto, are there javascript runtime errors in the browser console? - Visman Sep. pm
    • everything is not clean there, just as if the code is not connected and that's it - Alex Prosto