js:
function bypicord(){
var reorder = $("#ordercon").val();
if("desc" == reorder){
$("#ordercon").val("asc");
var url = "/product/listproduct.action?uid="+${sessionScope.user.id}+"&sort=price&ten=Y&FROMBUS=Y&order=asc";
gotoquery(url);
//window.location.href =gotoquery('url');
}else {
$("#ordercon").val("desc");
reorder = "desc";
var url = "/product/listproduct.action?uid="+${sessionScope.user.id}+"&sort=price&ten=Y&FROMBUS=Y&order=desc";
gotoquery(url);
}
}