html drop-down box problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:21:59
Original
1302 people have browsed it

HTML

I want to get the value passed from the background,
The code for the ordinary text type is as follows:
<INPUT type="text" name="pa_sys_master.M_EMAIL" value="<%=map.get("M_EMAIL") %>">
Copy after login
I get it through the value attribute
But what about the drop-down box? How to get the value passed from the background?
The code is as follows:
<select name = "pa_sys_master.M_STATE">						<option value = "-">请选择</option>						<option value = "0">无状态</option>						<option value = "1">有状态</option> 					</select>
Copy after login



Reply to discussion (solution)

I don’t understand what you want to say. What do you mean? Can the selected list be judged by the text value?

The above is the "input tag" that can implement the "get value" and value passing functions
The following is the "select drop-down tag" How to receive the value?

is to get the currently selected drop-down when modifying