Selection lines
jQuery (and CSS) can contain several selectors that use a comma as a separator for subselectors:
$('#address11, #address21, #town1, #county1, #postcode1').val('');
I would say that this is faster than using the class (the ID search should be performed mainly by constant time, while the class search will have to visit every DOM node), but maybe less service if you want to change which elements get reset.
Cechi source share