Using elementtree to Create HTML Form / Set "selected"
doug.shawhan at gmail.com
Thu Aug 12 16:55:24 CEST 2010
On Aug 12, 10:47 am, Peter Otten <__pete... at web.de> wrote:
> Doug wrote:
> > I'm using elementtree to create a form.
> > I would like to set the "selected" attribute.
> > Setting using the usual
> > option.set( "selected" = "" )
> Maybe that should be option.set(selected="selected"). I think
> <option selected="selected">
> <option selected>
> are equivalent.
> > gives me
> > <option selected="" value="operations">Operations</option>
> > how does one make
> > <option selected value="operations">Operations</option>
> > which is what I need.
Makes sense to me. Thanks!
More information about the Python-list