“Cambiar html div jQuery” Código de respuesta

Cambiar html div jQuery

// html
 <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 total-price bold red"> 0  </div>

// jquery
var price = 1000;
$('.total-price').html(price);
$('.total-price').text(price);

Zidane (Vi Ly - VietNam)

Cambiar html usando jQuery

//Takes input from entire page and uses it to change the HTML of h1
$(document).keypress(function(event){
  $("h1").text(event.key);
});
Crazy Civet

Respuestas similares a “Cambiar html div jQuery”

Preguntas similares a “Cambiar html div jQuery”

Más respuestas relacionadas con “Cambiar html div jQuery” en HTML

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código