在jsp中的下拉菜单 [英] dropdown in jsp

查看:752
本文介绍了在jsp中的下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在同一页面的查询字符串中使用下拉选择值.使用选定的名称"希望从数据库中获取该人的详细信息..而不使用Ajax ...

i want to use dropdown select value in query-string in same page.. Using selected ''name'' want to fetch details of that person from database.. without using Ajax...

推荐答案

您只需使用下拉菜单发布表单,如下所示:

You simply post the form with the dropdown like this:

<form name="form1" method="post">
<select name="select" class="tabletxt"  onChange="this.form1.submit()">
<option selected>Select info here </option>
<option>Program</option>
<option>Registering</option>
</select>
</form>




祝你好运!




Good luck!


这篇关于在jsp中的下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆