$('.cls').click(function(){
$('.mwindow').hide();
});
I don't see .cls
nor .mwindow
to begin with. Could you share more code? Maybe there is something in the code that you're not showing us.
Also, be sure to include jQuery and have JavaScript enabled.