Rather than use a happenstance check like this, we should look at using the "data-" html5 custom attributes. For example, we could add 'data-input-type="datepicker"' to date field types, and then use $.find('[data-input-type="datapicker"]'). It is specific and will allows UI design to be specific instead of loose.