What the syntax to add the following javascript within my razor (chtml) template?
<script type="text/javascript">
$(function(){
@if(Model.IsModalShown)
{
$('#myModal').modal('show');
}
});
</script>
What the syntax to add the following javascript within my razor (chtml) template?
<script type="text/javascript">
$(function(){
@if(Model.IsModalShown)
{
$('#myModal').modal('show');
}
});
</script>
OR