[whatwg] input type="country"?

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/

Received on Wednesday, 23 August 2006 07:57:33 UTC