In my view, I have following code:
<script type="text/javascript">
@if(Model.File == true)
{
//Como usar javascript aqui ?
//Exemplo:
$("#target").click(function() {
alert("Handler for .click() called.");
});
}
</script>