Just starting out with jQuery and feeling confident about the basics, but struggling to make it all come together.
For example:
If the page contains a div with the ID of #dynamicChat, then set the height of the div with the class .prdSection to 25px. Otherwise, do nothing.
Here's what I have so far:
$('#dynamicChat'){
$('.prdSection').css('height', '25px');
}
I feel like I'm close, but probably not close at all. Any guidance would be appreciated!
*Side note: When referring to a div on a page, would I call it an element?
Thank you :)