Hi,
If you want to use model value in javascript,then you need to access model value like this
var modelJSValue = '@Model.Id';(Razor code) or '<%: Model.Id %>'
Now your modelJSValue will have value of ID that belongs to your model.
Updated solution:
<script>
jQuery(document).ready(function () {
// initiate layout and plugins
App.init();
var modelJSValue = '@Model.Id';
alert(modelJSValue); //Confirm and see what we get at this point.
Calendar.init(modelJSValue); //Pass modelJSvalue to your script
});
</script>
Note: Make sure you read the parameter value in your js file as well.
Hope this helps you a bit.
Regards,
RK