I have four divs with different IDs. How would I set height for all these divs?
<div id="slide-1">a</div> <div id="slide-2">b</div> <div id="slide-3">c</div> <div id="slide-4">d</div> I know we can do something like this below, but there are other divs too before this.
$('div').height($(window).height()); I want to set these four divs to window height alone. I can't hard-code here as the slides may vary.
$('div').height($(window).height());put the div id$('#slide-1').height($(window).height());for example