Answers for "jquery remove div and append"

26

remove item jquery

$( ".hello" ).remove();
Posted by: Guest on March-22-2020
0

remove appended element jquery

$('#answer').on('click', function() {
  feedback('hey there');
});

var counter = 0;

function feedback(message) {

  $('#feedback').remove();

  $('.answers').append('<div id="feedback">' + message + ' ' + counter + '</div>');

  counter++;    
}
Posted by: Guest on February-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language