>< select name="select1" id="select-type">
QueryString = {
data: {},
초기: function () {
var aPairs, aTmp;
var queryString = new String(window.location.search)
queryString = queryString.substr(1, queryString.length); ?"
aPairs = queryString.split("&");
for (var i = 0; i < aPairs.length; i ) {
aTmp = aPairs[i].split("= ");
this.data[aTmp[0]] = aTmp[1];
}
},
GetValue: 함수(키) {
return this.data[key] ;
}
}
$(function () {
//Initialization
QueryString.Initial();
var type = QueryString.GetValue(" 유형") ;
if (typeof (유형) != "정의되지 않음") {
$("#select-type").val(type);
}
$( "#select-type").bind("change", function () {
var row = $(this).find("option:selected").val();
// 경고(행);
if (행 == 1)
location.href = "?type=" 행
if (행 == 2)
location.href = " ?type= " 행;
});
});