I have asp.net mvc4 project where on edit page I try to send value from model to jquery function as variable.
This code isn't work, nothing hit, does anybody know how can I get value from model without setting hidden properties.
Edit:
@model WebForTesting.Models.Form.ProfForm
<script>
$(document).ready(function () {
setOptionValue();
});
function setOptionValue() {
alert('@(Model.ChildrenId)');
}
</script>
I'm sure that ChildrenId isnt null