The original poster of this question later posted an answer, but as a comment:
Bootstrap inline text box and search button
To tidy the answer up I copied the code from the comment into the parent answer and ensured it was formatted correctly. I also added a link to example working:
https://stackoverflow.com/review/suggested-edits/6873193
It was rejected because
This edit was intended to address the author of the post and makes no sense as an edit. It should have been written as a comment or an answer.
That doesn't make any sense to me - I wasn't trying to address the author at all.