// sample solution to script.js
$(document).ready(function() {
$("ul.tabs li").click(function(){
if($(this).attr('class')!=='selected'){
$("ul.tabs li").removeClass('selected');
$(this).addClass('selected');
var selectionId2 = $(this).attr('id');
$(".page").css('display','none');
$(".page#"+selectionId2+"").css('display','block');
}
});
});
No comments:
Post a Comment