I have 4 text fields in a form that I want to clear when clicking a div.
I gave each text field a class class="1"
and am using this function to clear them.
$('#clear').click(function() {
$(".1").val('');
});
This seems to work but I'm wondering if there's a better, standard way to do it.
Note: I don't want to clear the entire form.