var currentUrl = $(location).attr('href'); //alert(currentUrl); var containsFoo = currentUrl.indexOf('Admin.aspx'); alert(containsFoo); if (containsFoo!=-1) { $("#" + DivId).removeAttr('class', 'SearchDivOff'); $("#" + DivId).attr('class','SearchDivOn'); } else { window.open("Admin.aspx", "_self"); $("#" + DivId).removeAttr('class','SearchDivOff'); $("#" + DivId).attr('class','SearchDivOn'); }
divId .style.display = "none"; divId .style.display = "block";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)