Trying to accses the class name from the event.target object. Works in FF, Safari, and Chrome. InternetExplorer 7 alerts "undefined". Any suggestions?
<script type="text/javascript">
$("document").ready(function(){
$(".page").hide();
$(".page:first").show();
$("#navBar a").bind("click", linkClicked);
});
function linkClicked(event){
$("div.page:visible").fadeOut(250, function(){
var $target = $(event.target);
alert($target.attr("class"));
//$("#" + $(event.target).attr("class")).fadeIn(250);
});
}
</script>