Make the search dropdown work. Fix #5, #7, #9.

We use some more "data-" attributes to set the hidden value in the
closest form.