Change content of a div on another page

前端 未结 4 618
温柔的废话
温柔的废话 2021-01-24 06:52

On page 1, I have a div containing information.

And on page 2, I have a form

4条回答
  •  清歌不尽
    2021-01-24 07:02

    You mean some thing like this ?

    $("#submit-info").click(function() {
       var content = $("#new-info").text();
       $("#information").html(content);
      });
    

    If you thing about server side, tell more about technology, which you use.

提交回复
热议问题