$(".slide-criteria").on("input change", function () { var val_slide = this.value; $(this).parent().find('.number').text(val_slide); });