1
In my view, I have code following:
<script type="text/javascript">
@if(Model.File == true)
{
//Como usar javascript aqui ?
//Exemplo:
$("#target").click(function() {
alert("Handler for .click() called.");
});
}
</script>
I don’t really understand this @ and I’m very layy in javascript, but why in the first if you put @outside and then you used inside the condition? Sure that’s not the problem?
– Francisco
@Francisco, updated post, please look.
– Matheus Miranda