Implemented Searchbox form-input type with datalist (https://develope… by gjdv · Pull Request #497 · webpy/webpy

The implementation from #98 also works for me. These are equivalent:

mySB = form.Searchbox(name='foo', value='bar', args=["bar1", "bar2", "bar3"], placeholder="Type or choose").render()

theirSB = form.Datalist(name='foo_list', args=["bar1", "bar2", "bar3"]).render() theirSB += form.Search(name='foo', value='bar', list='foo_list', placeholder="Type or choose").render()

I'd only suggest to close the <option> tags, see my comment