Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
$("[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);
    }
});

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
Posted
Updated 11-Mar-14 18:25pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900