jQuery hack to select text in search input when present