I have always believed that the Select drop-down box selects the option options to use the OnClick register event, as follows:
<select>
<option value= "0" onclick= "func (0)" > option one </option>
<option value= "1" onclick= " Func (1) "> Options two </option>
</select>
Today there is a request to do linkage menu, that is, every point, the adjacent drop-down box will automatically change, I think no problem ah, onclick walk
So go above the route, the customer also said, IE8 must support, I think also, XP of IE kernel can only ascend to IE8, now many users still
Reluctant XP, but it supports the onclick ah, I tried under FF, a little problem no, but a switch IE8, tell you, a little reaction did not
And then find the data, the original select its event is registered on its own label, not the onclick, but onchange, sub-tags on the low version of the browser is not valid, but also not the formal standard of writing.
<select onchange= "func () >
<option value=" 0 "> Option one </option>
<option value=" 1 "> Option two </option>
</select>
OK, here's the question again, what about the parameters I preach? How to receive Parameters
It's not a problem, jquery gives you the answer
function func () {
//Gets the selected option label
var vs = $ (' Select option:selected '). Val ();
Of course, the select here is better to add an ID to confuse, OK, problem solving, up posture of the wood has it, haha ...