时间:2021-07-01 10:21:17 帮助过:1人阅读
看下代码。
{$lang.sub_series}
$(document).ready(function(){
$('#big_cate_id').change(function(){
var sapval = $(this).val();
var cat_id = 0;
$(this).find('option').each(function(){
if($(this).attr('value') == sapval){
cat_id = $(this).attr('rel');
}
});
$('#sub_cate_id').empty();
$('#sub_cate_id').append('');
if(sapval == ''){
for(var i=0,len=subcate.length; i" + subcate[i].cat_name + "");
}
}else{
for(var i=0,len=subcate.length; i" + subcate[i].cat_name + "");
}
}
}
});
});
{/literal}
listTable.recordCount = {$record_count};
listTable.query = 'list';
listTable.pageCount = 1;
{foreach from = $filter item = item key = key}
listTable.filter.{$key} = '{$item}';
{/foreach}
function searchGoods() {
listTable.filter['big_cate_id'] = document.forms['searchForm'].elements['big_cate_id'].value;
listTable.filter['sub_cate_id'] = document.forms['searchForm'].elements['sub_cate_id'].value;
listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
listTable.filter['src'] = '{$src}';
listTable.loadList();
}
![图片描述][1]
看下代码。
{$lang.sub_series}
$(document).ready(function(){
$('#big_cate_id').change(function(){
var sapval = $(this).val();
var cat_id = 0;
$(this).find('option').each(function(){
if($(this).attr('value') == sapval){
cat_id = $(this).attr('rel');
}
});
$('#sub_cate_id').empty();
$('#sub_cate_id').append('');
if(sapval == ''){
for(var i=0,len=subcate.length; i" + subcate[i].cat_name + "");
}
}else{
for(var i=0,len=subcate.length; i" + subcate[i].cat_name + "");
}
}
}
});
});
{/literal}
listTable.recordCount = {$record_count};
listTable.query = 'list';
listTable.pageCount = 1;
{foreach from = $filter item = item key = key}
listTable.filter.{$key} = '{$item}';
{/foreach}
function searchGoods() {
listTable.filter['big_cate_id'] = document.forms['searchForm'].elements['big_cate_id'].value;
listTable.filter['sub_cate_id'] = document.forms['searchForm'].elements['sub_cate_id'].value;
listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
listTable.filter['src'] = '{$src}';
listTable.loadList();
}
![图片描述][1]
select标签有个属性size可以