I have a page with the form and I insert html into div. I try to insert button, but after inserting it with help of jquery - submit event of button not works.
<html>
<head>
<script
  src="https://code.jquery.com/jquery-1.12.4.min.js"
  integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
  crossorigin="anonymous"></script>
</head>
<script>
 $(document).ready(function() {
     console.log("ready!");
     $("#radio").click(function(){
      console.log("radio clicked!");
      
      $.ajax({
       type:'GET',
       url: "content.html",
       success:function(data){
        $("#contentDiv").html(data);  
       },
       error:function(thrownError){
        console.log("error",arguments);
        console.log(thrownError);
       }
      });
     });
 });
</script>
<body>
<form action="page2.html">
<input id="radio" type="radio" name="gender" value="male">Male</input>
<div id="contentDiv"></div>
</form>
</body>
</html>`###content.html###`
<input type="submit" name="ok">OK</input> 
     
     
     
    