"Dan Jacob" <[EMAIL PROTECTED]> writes:

(...)

> 2. The "selected" attribute is set automatically based on input
> value(s).

(...)

> s = SelectField("categoryID", options=[("XML", "XML Document", {}),
> ("HTML", "HTML Document", {})])
> 
> If the selected option is "XML" then the output is:

How to specify it?  I mean, how can we say that of the 55 options, 1, 2, 3,
..., n are selected?

> <select name="categoryID">
>     <option value="XML" selected>XML document</option>
>     <option value="HTML">HTML document</option>
> </select>

This is the HTML seen in the browser, right?  Because for Kid selected should
be a key=value pair...


Be seeing you,
-- 
Jorge Godoy      <[EMAIL PROTECTED]>

Reply via email to