“Remova o elemento anexo jQuery” Respostas de código

Remova o item jQuery

$( ".hello" ).remove();
Gleaming Guanaco

Remova o elemento anexo 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++;    
}
Crazy Coyote

JQuery remove os elemtns

.remove("#elemnt_id .elemnt_class");
Glamorous Gaur

Remova o elemento anexo jQuery

$(document).ready(function () {
    $("#add").click(function () {
        var newToDo = $("#newToDo").val();
        if(newToDo.length > 0){
            var anotherToDo = $("<p>" + newToDo + "</p>");
            $("#toDoList").append(anotherToDo);
            $("#newToDo").val(" ");

            // later when you want to delete it
            anotherToDo.remove();
        }
    });
});
Alert Ant

Respostas semelhantes a “Remova o elemento anexo jQuery”

Perguntas semelhantes a “Remova o elemento anexo jQuery”

Mais respostas relacionadas para “Remova o elemento anexo jQuery” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código