[Solved] Why trigger function is not working?


Is that you are looking for?

    <script>
      $(document).on("click", "#quizresultsave", function(){
        $(this).text("Clicked");
      });

        $(document).ready(function(){
            $('#step2continue').click(function(){
            $("#quizresultsave").trigger("click");
            });
        });
  </script>
  <div id="step2continue" onclick="">test tes tes test </div>
  <div id="quizresultsave" onclick="alert('tt')">testingggggg</div>

solved Why trigger function is not working?