I want to print an input type number on confirmation page.
var displayConfirm = function() {
$('#tab5 .form-control-static', form).each(function(){
var input = $('[name="'+$(this).attr("data-display")+'"]', form);
if (input.is(":radio")) {
input = $('[name="'+$(this).attr("data-display")+'"]:checked', form);
}
if (input.is(":text") || input.is("textarea")) {
$(this).html(input.val());
} else if (input.is("select")) {
$(this).html(input.find('option:selected').text());
} else if (input.is(":radio") && input.is(":checked")) {
$(this).html(input.attr("data-title"));
}
});
}
If I use input.is(":number") and $(this).html(input.val()); it crashes.
<input type="number" name="quantity" min="1" max="5">