function find(){
// var p_name = $('#q10_p_name option:selected').val();
// var p_name = $('#p_name').attr('p_name');
var year = $('#year_change option:selected').val();
var m = $('#m option:selected').val();
// var tag = $('#tag').attr('tag');
location.href = "?year="+year+"&m="+m;//+"&tag="+tag;
}
function year_change(){
var year = $('#year_change option:selected').val();
location.href = "?year="+year;
}
Jq form POST提交
$.extend({
PostSubmitForm: function (url, args) {
var body = $(document.body),
form = $("<form method='post' style='display:none'></form>"),
input;
form.attr({ "action": url });
$.each(args, function (key, value) {
input = $("<input type='hidden'>");
input.attr({ "name": key });
input.val(value);
form.append(input);
});
//IE低版本和火狐下
form.appendTo(document.body);
form.submit();
document.body.removeChild(form[0]);
}
});
//示例$.PostSubmitForm('url', { data1:'12',data2:'21' })