how to get select label?

lli at sos.state.tx.us lli at sos.state.tx.us
Wed Dec 14 15:07:45 EST 2005


Hi Guys,

I built a select in a form. My select is:
            print '<SELECT NAME="county">'
            print '<OPTION VALUE="000">ALL'
            print '<OPTION VALUE="001">AAA'
            print '<OPTION VALUE="002">BBB'
            print '</SELECT>'

I can get which item value users select. For example users select item
2, I can get its value "001". But now I want to get item label "AAA",
not its value "001". How I can do this. I use python to code.


Any help is appricated.


LLI




More information about the Python-list mailing list