function ajaxSearchChildNode($element, productLine, productFamily) {
$.ajax({
url : '/supportmng/pages/poapply/checkerConfigAction.do?actionFlag=getProductNodeByAjax',
data : {
'productLine' : productLine,
'productFamily' : productFamily
},
type : 'get',
dataType : 'json',
async : false,
success : function(json){
clearOptions($element);
$.each(json,function(i){
var optionVal = json[i].item_id;
var optionTxt = json[i].item_name;
if (optionVal != "" && optionVal != "undefined")
{
if (i == 0)
{
$element.append('<option value=""></option>');
}
$element.append('<option value="' + optionVal + '">' + optionTxt + '</option>');
}
});
}
});
}
//清空下拉列表的内容
function clearOptions($element) {
$element.empty();
}