请问...下拉列表如何在跳转后页面,设置下拉框的默认值? 100
<!--下拉列表跳转链接--><scripttype="text/javascript">functionMM_jumpMenu(targ,selObj,restore)...
<!-- 下拉列表跳转链接 -->
<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>
<select class="select-main form-control" onchange="MM_jumpMenu('parent',this,0)">
<option>请选择菜单</option>
<option value="index.php?r=project/project/view/&project=<?php echo $project['id']; ?>">项目概览</option>
<option value="index.php?r=project/data-file/index/&project=<?php echo $project['id']; ?>">项目资料</option>
<option value="index.php?r=alert/alert/view-customer/&project=<?php echo $project['id']; ?>">报警管理</option>
<option value="index.php?r=monitor/monitor-show/&project=<?php echo $project['id']; ?>">监控图表</option>
</sclect> 展开
<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>
<select class="select-main form-control" onchange="MM_jumpMenu('parent',this,0)">
<option>请选择菜单</option>
<option value="index.php?r=project/project/view/&project=<?php echo $project['id']; ?>">项目概览</option>
<option value="index.php?r=project/data-file/index/&project=<?php echo $project['id']; ?>">项目资料</option>
<option value="index.php?r=alert/alert/view-customer/&project=<?php echo $project['id']; ?>">报警管理</option>
<option value="index.php?r=monitor/monitor-show/&project=<?php echo $project['id']; ?>">监控图表</option>
</sclect> 展开
若以下回答无法解决问题,邀请你更新回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询