I wanted to create an expanding div when the user clicks on it so that they can see the rest of the information. I have managed to do that. What I want to do now is to make it so the height of the div changes when the user clicks on the div again.
Here is my script:
$(".module").one('click', function () {
$(this).height(400)
.css({
cursor: "auto"
});
});
Here is my css:
.module {
width:270px;
height:200px;
float:left;
padding:5px;
overflow:hidden;
cursor:pointer;
}