test = SELECT("1","2", value = "2")
test.attributes["value"] = "1"
test._postprocessing() # recursively loops over options and fixes
them.

On 9 Lug, 06:41, Serbitar <[email protected]> wrote:
> The following code:
>
> test = SELECT("1","2", value = "2")
> test.attributes["value"] = "1"
>
> still renders as:
>
> <select>
> <option value="1">1</option>
> <option selected="selected" value="2">2</option>
> </select>
>
> I have no idea why . . .

Reply via email to