$("[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); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)