Try
<head>
<!--- the head elements -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<script type="text/javascript>
(function($){
$(document).ready(function(){
$("#myul > li").on("click", function(){
$('li').each(function(){
var data = $(this).find('a').attr('href');
$(data).css({'display' : 'none'});
});
var curr = $(this).find('a').attr('href');
$(curr).css({'display' : 'block'}).find('img').animate(
{
'width' : '100%',
'height' : 'auto'
},
1000
);
})
});
})(jQuery);
</script>