Javascript 下拉复位查询

Javascript 下拉复位查询,javascript,jquery,html,Javascript,Jquery,Html,我做了大量的尝试和错误。。。。。它可以在网页中工作,但不能作为jquerymobile。(按下“开始”时,秒表按钮应变为“停止”。此外,如果我在“第一选择”下拉列表中重新选择,则下拉框不清楚。我还希望自动显示最终下拉列表,而不是“选择”下拉列表。有人能帮我吗 谢谢 jQuery移动Web应用程序 函数dynamicdropdown(listindex) { document.getElementById(“sub_subcategory”)。长度=0; document.getElement

我做了大量的尝试和错误。。。。。它可以在网页中工作,但不能作为jquerymobile。(按下“开始”时,秒表按钮应变为“停止”。此外,如果我在“第一选择”下拉列表中重新选择,则下拉框不清楚。我还希望自动显示最终下拉列表,而不是“选择”下拉列表。有人能帮我吗

谢谢


jQuery移动Web应用程序
函数dynamicdropdown(listindex)
{
document.getElementById(“sub_subcategory”)。长度=0;
document.getElementById(“子_子类别”)。选项[0]=新选项(“请选择底部时间”,”);
document.getElementById(“子类别”).length=0;
开关(列表索引)
{
案例“9”:
document.getElementById(“子类别”)。选项[0]=新选项(“无限制”);
打破
案例“12”:
document.getElementById(“子类别”)。选项[0]=新选项(“请选择底部时间”);
document.getElementById(“子类别”)。选项[1]=新选项(“120”、“120-12”);
document.getElementById(“子类别”)。选项[2]=新选项(“165”、“165-12”);
document.getElementById(“子类别”)。选项[3]=新选项(“195”、“195-12”);
document.getElementById(“子类别”)。选项[4]=新选项(“225”、“225-12”);
document.getElementById(“子类别”)。选项[5]=新选项(“255”、“255-12”);
document.getElementById(“子类别”)。选项[6]=新选项(“330”、“330-12”);
document.getElementById(“子类别”)。选项[7]=新选项(“390”、“390-12”);
document.getElementById(“子类别”)。选项[8]=新选项(“660”、“660-12”);
document.getElementById(“子类别”)。选项[9]=新选项(“超过660”、“超过660-12”);
打破
案例“15”:
document.getElementById(“子类别”)。选项[0]=新选项(“请选择底部时间”);
document.getElementById(“子类别”)。选项[1]=新选项(“75”、“75-15”);
document.getElementById(“子类别”)。选项[2]=新选项(“105”、“105-15”);
document.getElementById(“子类别”)。选项[3]=新选项(“120”、“120-15”);
document.getElementById(“子类别”)。选项[4]=新选项(“135”、“135-15”);
document.getElementById(“子类别”)。选项[5]=新选项(“145”、“145-15”);
document.getElementById(“子类别”)。选项[6]=新选项(“160”、“160-15”);
document.getElementById(“子类别”)。选项[7]=新选项(“170”、“170-15”);
document.getElementById(“子类别”)。选项[8]=新选项(“190”、“190-15”);
document.getElementById(“子类别”)。选项[9]=新选项(“240”、“240-15”);
document.getElementById(“子类别”)。选项[10]=新选项(“360”、“360-15”);
document.getElementById(“子类别”)。选项[11]=新选项(“450”、“450-15”);
document.getElementById(“子类别”)。选项[12]=新选项(“超过450”、“超过450-15”);
打破
}
返回true;
}
函数dynamicdropdownone(listindex)
{
document.getElementById(“sub_subcategory”)。长度=0;
开关(列表索引)
{
案例“120-12”:
document.getElementById(“子_子类别”)。选项[0]=新选项(“无需停止”),“”;
打破
案例“165-12”:
document.getElementById(“sub_subcategory”)。选项[0]=新选项(“5min@3M”,”);
打破
案例“195-12”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“10min@3M”,“0”);
打破
判例“225-12”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“15min@3M”,”)
打破
案例“255-12”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“20min@3M”,即“);
打破
案例“330-12”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“25min@3M”,即“);
打破
案例“390-12”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“30min@3M”,即“);
打破
案例“660-12”:
document.getElementById(“sub_subcategory”)。选项[0]=新选项(“35min@3M”,”);
打破
案例“超过660-12”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“40min@3M”,“0”);
打破
案例“75-15”:
document.getElementById(“子_子类别”)。选项[0]=新选项(“无需停止”),“”;
打破
案例“105-15”:
document.getElementById(“sub_subcategory”)。选项[0]=新选项(“5min@3M”,”);
打破
案例“120-15”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“10min@3M”,“0”);
打破
案例“135-15”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“15min@3M”,”)
打破
案例“145-15”:
document.getElementById(“sub_子类别”)。选项[0]=新选项(“20min@3M”,即“);
打破
案例“160-15”:
D