sir, i guess i'm not gettin it. kindly tell me the syntax. wats happeneing is dat its setting the last item as selected. where as i want the item matching the result from 'distname' var sud be selected only. kindly gimme the syntax if possible. On Wed, 23 Mar 2005 Jürgen Herrmann wrote :
i succeeded in either setting the selected attribute to "selected" or "", hth
juergen herrmann
[ prabuddha ray wrote:]
I've got to set the particular item selected in a dropdown list which was in the request object.this is fetched by reloading the page.
i've a var 'distname' which holds wat has been selected
<body tal:define="distname request/form/districtname|nothing" onload="foc()">
wen i use this in my option tag of the list with the attribute tag nothing happens.
<option tal:content="district/district_name" tal:attributes="selected distname"></option>
i guess coz the 'selected' attribute don take any values. so how do do it?
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )