How to add text to an existing div with jquery

前端 未结 6 441
礼貌的吻别
礼貌的吻别 2020-12-08 00:27

I want to add text to an existing div, when I click the Button with the id #add. But this is not working.

Here my code:

6条回答
  •  忘掉有多难
    2020-12-08 00:56

    $(function () {
      $('#Add').click(function () {
        $('

    Text

    ').appendTo('#Content'); }); });
    
     

提交回复
热议问题