选择,选项做一些事情

时间:2016-04-28 17:34:19

标签: html select option

我想点击vault1 ..vault5做点什么

<form id="someform">

    <select id="selectid">
        <option selected="selected">Choose Vault</option>
        <option value="1"> Vault 1 </option>
        <option value="2"> Vault 2 </option>
        <option value="3"> Vault 3 </option>
        <option value="4"> Vault 4 </option>
        <option value="5"> Vault 5 </option>
    </select>

</form>

if value == 1 { do something} .... if value== 5 { do something}

1 个答案:

答案 0 :(得分:0)

当&#34;做某事&#34;必须使用mssql查询