I have an if statement which checks the url for "ivnt", I would like the div "carriage-promo" to have height changed from it's dafault of 0px, to 40px.
I do not want to add a class or remove a class, I know how to achieve this already and it doesn't solve this problem I'm afraid.
Consider:
$(document).ready(function () {
if(window.location.href.indexOf("invt") > -1) {
$('#promo-carriage').css{
height: '40px'}
}
});
However, this is not working for me. Any suggestions? I'm quite sure this will be a syntax error, but I'm new to jQuery/JS!