Depending on the number of parameters queried by the elements, the different number of query parameters is passed start
var elements = Node.attributes.text.split (",");
var postdata = [];
if (elements.length = = 1) {
When there is only one parameter
PostData = {txt_industry_: elements[0]};
} else if (elements.length = = 2) {
When there are two parameters,
PostData = {txt_industry_: elements[0], Txt_modulecode_: elements[1]};
}
Depending on the number of parameters queried by elements, the different number of query parameter end is passed
Query except for the original pass parameters, and empty the start individually
var postData1 = $ ("#jq"). Jqgrid ("Getgridparam", "postdata");
Delete postdata1["Txt_industry_"];
Delete postdata1["Txt_modulecode_"];
Query except for the original pass parameters, and empty the end individually
Pass a new query parameter and refresh the table
$ ("#jq"). Jqgrid ("Setgridparam", {postdata:postdata}). Trigger ("Reloadgrid");
Fixed multiple query conditions for Jqgrid Setgridparam PostData Cumulative