[whatwg] input type="country"?

Arve Bersvendsen arveb at opera.com
Wed Aug 23 07:57:33 PDT 2006


On Wed, 23 Aug 2006 16:36:44 +0200, Martijn <martijn.martijn at gmail.com>  
wrote:

> You can have a select list and an input control at the same time, not?

See Lachlan Hunt's suggestion elsewhere in this thread, he uses:

<input type="text" name="country" list="country-list">
<select name="country-list" id="country-list">
     [...]
</select>

This gives you an input type="text" that has an attached dropdown with  
your suggestions.  With unobtrusive scripting, you could filter this list  
automatically as the user types (by setting the disabled attribute on  
non-matching <option>s.
-- 
Arve Bersvendsen, Opera Software ASA, http://www.opera.com/



More information about the whatwg mailing list