I'm using the following jQuery to clone a set of input fields (1 Select field, 2 Text fields and 1 Number field)
$("#add_button").click(function(e) {
e.preventDefault();
$(".form-row :first").clone().insertAfter(".form-row :last").find("input[type='text']").val("");
});
Is there any way I can extend this so the cloned number fields don't also contain the values.
I've tried
$("#add_button").click(function(e) {
e.preventDefault();
$(".form-row :first").clone().insertAfter(".form-row :last").find("input[type='text|number']").val("");
});
Which doesn't work.