How to add a div when clicking a button in jquery?

前端 未结 3 1473
野性不改
野性不改 2020-12-10 14:22

I need to add the following div structure when i click button at every time? I need to generate the following whole div structure at every time of clicking the button using

3条回答
  •  余生分开走
    2020-12-10 14:50

    How about this:

    $('#button_id').click(function() {
    
        var structure = $('
    Sweep Stakes
    sendSMS
    '); $('#whatever').append(structure); });

提交回复
热议问题