SharePoint 2010 Search - trigger with enter, not just magnifying glass.

This should be easy - I have an Enterprise Search page using the Enterprise Search template. When a term is entered in to the search input box, the magnifying glass icon has to be clicked on to trigger search. Is there some way to configure the box so that just by pushing the "Enter" key will also trigger the search?

Thanks
LVL 23
Walter CurtisSharePoint AEDAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi Sneeko,
long time no see?

Sorry but I have currently no running SharePoint 2010 site available.
But: is jQuery available on your search page?
Does this work perhaps on some browsers but not in Chrome?

Idea would be to inject JavaScript, get the search input box by ID and then forcing the search form submit (or the search button click) by capturing the key code on keypress.

Could you perhaps post the generated HTML code of that page?

Thanks, HTH and merry Christmas
Rainer

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Walter CurtisSharePoint AEDAuthor Commented:
Hello Rainer,

Thanks, that's what I needed just a good idea to jog my memory about how to do this. I even have a snippet somewhere about doing this. Many thanks and a Fröhliche Weihnachten!

wc
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.