Perform a lookup by CSS selector on an HTML input