如何将数据存储在表中显示的cookie中? [英] how to store data in cookie which show in table?
本文介绍了如何将数据存储在表中显示的cookie中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$("[id$='Show']").on("click", function () {
try {
var id = $(this).attr('id');
var symbol;
var context;
if (id.toString().indexOf('Bullish', 0) > 0) {
symbol = $("#drpBullishSymbol option:selected").text();
context = $("#AA");
}
if (id.toString().indexOf('Bearish', 0) > 0) {
symbol = $("#drpBearishSymbol option:selected").text();
context = $("#BA");
}
if (symbol.toString().length > 0) {
$("tr", context).each(function () {
if ($('td:eq(0)', this).text() !== symbol) {
$(this).hide();
//$(this).css('visibility', 'collapse');
} else {
$("#AA").before($(this).show());
//$(this).css('visibility', 'visible');
}
});
}
} catch (ex) {
alert("While filtering details : " + ex);
}
});
现在单击表中的显示按钮后,此jQuery显示数据,我想将数据存储在表中显示的cookie中,所以我该怎么办?请给我解决方案
This jquery show data after click on show button in table now i want to store that data in cookie which are show in table so what i have to do? please give me solution
推荐答案
("
("[id
='Show']").on( 点击",函数(){ 尝试 { var id =
='Show']").on("click", function () { try { var id =
( this ).attr(' id'); var 符号; var 上下文; 如果(id.toString().indexOf(' 看多', 0 )> 0 ){ 符号=
(this).attr('id'); var symbol; var context; if (id.toString().indexOf('Bullish', 0) > 0) { symbol =
这篇关于如何将数据存储在表中显示的cookie中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文