I've been attempting to use JQuery to change a CSS property without success, despite trying multiple solutions found on SO.
Here's what I've attempted (with numberHours being a previously defined variable):
$(".cd-schedule .events .top-info").css("height", 1000 / numberHours + "px");
Even breaking it down into three separate instructions for each css class didn't yield results.
This snippet shows my current CSS code:
@media only screen and (min-width: 800px) {
.cd-schedule .events .top-info {
display: table;
height: 50px; /*<-- The property I want to change*/
border-bottom: 1px solid #EAEAEA;
padding: 0;
}
}