estoy tratando de agregar una clase a un label cada vez que presiono una tecla en un input, encontre este codigo, pero no logro pasarlo a js puro. Me ayudan???
$(".contenedor-formularios").find("input, textarea").on("keyup blur focus", function(e) {
var $this = $(this),
label = $this.prev("label");
if (e.type === "keyup") {
if ($this.val() === "") {
label.removeClass("active highlight");
} else {
label.addClass("active highlight");
}