I have a few input elements between multiple pages, all of which have have IDs ending in "-foobar" (preceding this is the type of content each page represents, such as a "contact_us-foobar" or "profiles-foobar", "search-foobar", etc.)

Instead of applying individual jQuery to each exclusive element, I'd rather try to key off of each input by searching the HTML for elements that have IDs ending in "-foobar", this way I could write once but apply to many.

Is it possible to search the entire HTML for input elements that have IDs ending in "-foobar" ?