function doit(){
var sel_val=$("#type").val();
if (sel_val=='') {
$("#bigClassId1").hide();
$("#bigClassId2").hide();
}
if (sel_val==) {
$("#bigClassId1").show();
$("#bigClassId2").hide();
}
if (sel_val==) {
$("#bigClassId2").show();
$("#bigClassId1").hide();
}
}
</script>--> <select name="type" id="type" onchange="doit();">
<option value="">店铺</option>
<option value="">无</option>
<option value="">有</option>
</select>
<select name="bigClassId" id="bigClassId">
<option value="">类别</option>
<?php
$rs=query("SELECT id,categoryName FROM tb_easy_category WHERE grade in(1,2) AND categoryId=0 AND state = 0");
while($row=fetch_array($rs)){
echo "<option value=".$row["id"].">".$row["categoryName"]."</option>";
}
free_result($rs);
?>
</select>
点击按钮隐藏显示
<?php include "common.inc.php" ?>
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>优品阁-充值有礼</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="assets/i/favicon.png">
<link rel="stylesheet" href="assets/css/amazeui.min.css">
<link rel="stylesheet" href="assets/css/app.css">
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script language=javascript>
function check(flag){
if(flag == ){
document.getElementById("text1").style.visibility="visible";
document.getElementById("text2").style.visibility="hidden";
document.getElementById("text3").style.visibility="hidden";
}else if(flag == ){
document.getElementById("text1").style.visibility="hidden";
document.getElementById("text2").style.visibility="visible";
document.getElementById("text3").style.visibility="hidden";
}else if(flag == ){
document.getElementById("text1").style.visibility="hidden";
document.getElementById("text2").style.visibility="hidden";
document.getElementById("text3").style.visibility="visible";
}else{
document.getElementById("text1").style.visibility="hidden";
document.getElementById("text2").style.visibility="hidden";
document.getElementById("text3").style.visibility="hidden";
}
}
</script>
</head>
<body>
<!-- header+Menu -->
<?php
$title="充值有礼";
include "menu.php";
?>
<div class="am-form am-margin-top-sm" data-am-validator>
<fieldset>
<table cellpadding="" cellspacing="" border="" width="100%" height="">
<tbody>
<tr align="center" >
<td width="33%" height="25%" style="font-size:20px">充值方式</td>
<td width="73%" height="25%"></td>
</tr>
<tr align="center" >
<td width="33%" height="25%"><label>
<input type="radio" id="type1" onclick="check(1)" name="doc-radio-1" checked>
</label>
<span class="am-fr">支付宝 </span> </td>
<td width="73%" height="25%"><input id="text1" style="ime-mode:disabled" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false">
</td>
</tr>
<tr align="center" >
<td width="33%" height="25%"><label>
<input type="radio" id="type2" onclick="check(2)" name="doc-radio-1" checked>
</label>
<span class="am-fr">微信支付</span> </td>
<td><input id="text2" style="ime-mode:disabled" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false">
</td>
</tr>
<tr align="center" >
<td width="33%" height="25%" style=" color:#FF9900;" colspan="">*第三方充值到帐需要一段时间,请耐心等候</td>
</tr>
<tr >
<td width="33%" height=""></td>
</tr>
<tr align="center" >
<td width="33%" height="25%"><label>
<input type="radio" id="type3" onclick="check(3)" name="doc-radio-1" checked>
</label>
<span class="am-fr">充值卡券</span> </td>
<td><input id="text3" style="ime-mode:disabled" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false">
</td>
</tr>
</tbody>
</table>
<div class="am-form am-margin-top-sm" data-am-validator>
<button class="am-btn am-btn-warning am-radius am-btn-block" onClick="loginAction()">充值</button>
</div>
</fieldset>
<div style="background:#E6E6E6; color:#666666;">注*用户需知;1因水果季节性强,充值有礼赠品请以领取时为准。2账户余额不能购买券卡.3充值后若用户申请充值账户余额退款,获得的赠品的用户需将赠品退回或扣除赠品实际价格金额后退回相应余额 </div>
<?php include "foot.php" ?>
</body>
</html>