Back to Design Shack

CSS3 Expanding Search Input



JavaScript Fixed-Width Input

Here we check if the user has entered some text into the search field. If so, then we force the input to stay open at 100% width using JavaScript.