I have a page which shares the same class, I want one page (top.cfm) to have a border with a background-color but I don't want the (landing page.cfm) to have the border or background-color. This is my code on jQuery. Where am I going wrong?
$(function(){
if (window.location.pathname == "common/top.cfm") {
$('.content-padding').show('.content-padding').css('background-color', '#fff', 'border', '1px solid #CCCCCC');
} else (window.location.pathname == "common/landing_page.cfm")
{
$('.content-padding').css('background-color', '#E1E1E0', 'border', 'none')
}
});
Aucun commentaire:
Enregistrer un commentaire