select下拉列表
1.写
<!DOCTYPE html> <html> <head> <title></title> <script language="javascript" src="jquery.min.js"></script> </head> <body> <select name="Usex" id="#Usex"> <option value="1">男</option> <option value="2">女</option> </select> </body> </html>
2.获取值
<script type="text/javascript"> $value=("select[name='Usex']").val(); </script>
3.回显
<select name="Usex" id="#Usex"> <option value="1" <{if $data.Usex=1 }> checked <{/if}> >男</option> <option value="2" <{if $data.Usex=2 }> checked <{/if}> >女</option> </select>