<script type="text/javascript">
//Code added by Nitesh for RFE 670082 starts here
jQuery("input[name='hideLineItemColumns_quote']").click(function() {
alert(jQuery(this).attr('checked'));
if(jQuery(this).attr('checked')){
var columnName = $.trim($(this).val()).replace('\u00a0','');
$('thead.line-item-grid-header tr th').filter(function()
{
if($.trim($('div', this).text()).replace(' ','') == columnName){
indexValue = $(this).index();
//Hiding body columns
jQuery('.line-item-grid-body').children('tr').each(function(){
jQuery(this).children('td:eq('+indexValue+')').hide();
});
//Hiding footer columns
jQuery('.line-item-grid-footer').children('tr').each(function(){
jQuery(this).children('th:eq('+indexValue+')').hide();
});
return true;
};
}).hide();
}
else{
var columnName = $.trim($(this).text()).replace('\u00a0','');
$('thead.line-item-grid-header tr th').filter(function()
{
if($.trim($('div', this).text()).replace(' ','') == columnName){
indexValue = $(this).index();
//Showing body columns
jQuery('.line-item-grid-body').children('tr').each(function(){
jQuery(this).children('td:eq('+indexValue+')').show();
});
//Showing footer columns
jQuery('.line-item-grid-footer').children('tr').each(function(){
jQuery(this).children('th:eq('+indexValue+')').show();
});
return true;
};
}).show();
}
});
-4
A
回答
3
相關問題
- 1. 顯示()方法在jquery不工作
- 2. 顯示和隱藏不工作在Jquery
- 3. jQuery顯示/隱藏不工作
- 4. JQuery顯示/隱藏不工作IE7
- 5. jquery隱藏顯示工作不正常
- 6. 簡單jquery顯示div不工作
- 7. jquery顯示無默認不工作
- 8. 不工作jquery顯示/隱藏下拉
- 9. jquery css顯示div鏈接不工作?
- 10. jquery代碼顯示更多不工作
- 11. Jquery隱藏/顯示不工作
- 12. jQuery隱藏/顯示隨機不工作?
- 13. jquery更改顯示不工作
- 14. jQuery顯示/隱藏slideToggle不工作
- 15. Jquery顯示/隱藏按鈕不工作
- 16. JQuery隱藏並顯示不工作
- 17. jquery效果突出顯示不工作
- 18. HTML圖像不顯示在鉻,jQuery更改不工作在IE
- 19. jQuery顯示/隱藏滑塊不工作在jQuery 1.5.x中?
- 20. Jquery長段顯示更多/顯示較少鏈接不工作
- 21. jquery funciton顯示消息不能在ie10中工作,但在鉻中工作
- 22. RStudio:顯示工作區不工作
- 23. jQuery焦點()在第一次顯示後不工作()在IE中
- 24. 顯示操作在嵌套顯示頁面不工作
- 25. iPad工作表不顯示
- 26. 滑塊不顯示/工作
- 27. PHP顯示filemtime不工作
- 28. SQL顯示錶不工作
- 29. Codeigniter顯示set_message不工作
- 30. 顯示錶:titlekey不工作
您需要去掉這98%左右,僅發佈應用代碼。沒有人會通讀所有這些。 –
是的,發佈這麼多基本問題的代碼表明,你甚至沒有試圖縮小代碼中的問題所在。 –
對不起,我..我不小心複製了我所有的代碼 – Nitesh