选择下拉框里面内容自动跳转特定页面
function searchMail(){
if(document.getElementById("search").value ==""){
alert("请输入要搜索的关键字");
document.getElementById("search").focus();
}else{
location="index.cfm?event=ehMail.dspComposeMessage&search="+document.getElementById("search").value+"&searchType="+document.getElementById("searchType").value;
}
} 
搜索 <input type="text" size="30" name="search" id="search" value="<cfif isdefined("rc.search")><cfoutput>#rc.search#</cfoutput></cfif>" /> 按
<select name="searchType" id="searchType">
<option value="title"<cfif isdefined("searchType") and searchType eq "title"> selected="selected"</cfif>>邮件主题</option>
<option value="mail"<cfif isdefined("searchType") and searchType eq "mail"> selected="selected"</cfif>>收件人信箱</option>
<option value="desc"<cfif isdefined("searchType") and searchType eq "desc"> selected="selected"</cfif>>邮件内容</option>
</select>
<input type="button" style="font-size:80%;" name="searchButton" id="searchButton" value="确 认" />
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
- 上一篇:没有了
- 下一篇:没有了
