I have some basic jquery that is changing the content of a single div. The only thing that I can't figure out is how to show one of the four external HTML files (ie. lookbook20141217.HTML) as the default when the page first loads. Right now, the container DIV "lookBookWindow" is empty until one of the "buttons" is clicked.
HTML
<div id="lookBookMain">
<div id="lookBookWindow"></div>
<input id="lookbook20141217" class="thumbnail rm" type="image" src="thumbnails/20141217.jpg" alt="maurices lookbook20141217" width="220" height="220" border="0" />
<input id="lookbook20141114" class="thumbnail rm" type="image" src="thumbnails/20141114.jpg" alt="maurices lookbook20141114" width="220" height="220" border="0" />
<input id="lookbook20141018" class="thumbnail rm" type="image" src="thumbnails/20141018.jpg" alt="maurices lookbook20141018" width="220" height="220" border="0" />
<input id="lookbook20141016" class="thumbnail" type="image" src="thumbnails/20141016.jpg" alt="maurices lookbook20141016" width="220" height="220" border="0" />
</div>
CSS
#lookBookMain {
width: 940px;
margin: 0px auto;
padding: 0px;
position: relative;
}
#lookBookWindow {
width: 940px;
height: 580px;
margin: 0px;
padding: 0px;
}
.thumbnail {
width: 220px;
height: 220px;
margin: 0px;
padding: 20px 0px 0px 0px;
position: relative;
float: left;
}
input.thumbnail:focus {
outline-width: 0;
}
.rm{
margin-right: 20px;
}
JQUERY
$('input[type="image"]').click(function() {
var pageName = this.id;
$('#lookBookWindow').load(pageName + '.html');
});
I feel like it should just be another line in the jquery, but I'm not finding what I need online. Thanks in advance!