Skip to content

Instantly share code, notes, and snippets.

@Johnqing
Last active December 17, 2015 12:39
Show Gist options
  • Save Johnqing/5611195 to your computer and use it in GitHub Desktop.
Save Johnqing/5611195 to your computer and use it in GitHub Desktop.
var searchTableArea = $(".search_table_area");
function fwidth() {
var c_width = searchTableArea.width(),
snumTrs = searchTableArea.find("tr"),
snumTrsLen = searchTableArea.find("tr").length;
for(var i = 0 ;i < snumTrsLen; i++) {
snumTrs.eq(i).find("td:eq(1)").css("width",(c_width -200 + "px"));
}
}
var str_id01;
var str_id02;
function fopen() {//展开关闭搜索
searchTableArea.toggle(
function() {
tab('block','关闭搜索');
},
function() {
tab('none','展开搜索');
}
);
function tab(type,text){
searchTableArea.css("display",type);
var checkArea = $(".seach_check_area");
checkArea.css("display",type);
checkArea.find("a").empty().html(text)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment