elclanrs/jq-idealforms — pull request #46 by garygreen (2012-08-31 13:05:55+00:00)
Title: Fix getByNameOrId() and cache jQuery selector

Original code was just getting the [name=] twice and could never return by id. Also it was unnecessarily causing jQuery to find the selector multiple times.

Corrected to find by id if [name] not found, else return a message. Caches selectors.