您好,登錄后才能下訂單哦!
<script src="/js/jquery-1.8.3.min.js"></script>
<!-- ! 日期 js,css -->
<script src="/js/jquery-ui.js"></script>
<link rel="stylesheet" href="/css/demo.css">
<form >
<li >
<span>切換試圖</span>
<select onchange="choose_status(this);" id="changeview" name="changeview" class="form-control">
<option label="所有交易" value="all">所有交易</option>
<option selected="selected" label="進行中的交易" value="current">進行中的交易</option>
<option label="已完成的交易" value="completed">已完成的交易</option>
<option label="已取消的交易" value="cancelled">已取消的交易</option>
<option label="待處理的交易" value="needaction">待處理的交易</option>
<option label="待評價的交易" value="needfeedback">待評價的交易</option>
</select>
<script>
document.getElementById("sel1").selected=true;
</script>
</li>
<li >
<span>行為:</span>
<select onchange="choose_type(this)" id="filter" name="filter" class="form-control">
<option selected="selected" label="全部" value="all">全部</option>
<option label="買入" value="buying">買入</option>
<option label="賣出" value="selling">賣出</option>
</select>
</li>
<li >
<span>時間范圍</span>
<input type="text" id="datepicker1" class="form-control "><small> - </small><input type="text" id="datepicker2" class="form-control ">
<button type="button" id="search" onclick="search()" value="search" class="button button-primary button-rounded button-small">查詢</button>
</li>
<div class="clear"></div>
</form>
<!-- ! 查詢 JS -->
<script>
function choose_status(a){
var status = a.value;
// alert(status);
}
function choose_type(b){
var user_type = b.value;
// alert(type);
}
$("#search").click(function(){
// alert('search');
var status = $("#changeview option:selected").val();
var user_type = $("#filter option:selected").val();
var start_time = $("#datepicker1").val();
var end_time = $("#datepicker2").val();
query = status +'\n'+ user_type + '\n'+start_time +'\n'+end_time;
alert(query);
});
</script>
<!-- ! 日期 JS -->
<script>
$(function() {
$( "#datepicker1" ).datepicker();
$( "#datepicker2" ).datepicker();
});
</script>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。