In my ASP.NET MVC page has a form for new records.
When the user saves a record I need to feed the value of a field of my "Model" within a Jquery function.
$('#checkBoxInsertPF').click(function(e){
@Model.CNPJ = $(".....................").Val('')
});
How can I do this within a Jquery Block?
InsertNewRegister.cshtml
@Model.Cliente model
@section scripts{
<script type="text/jscript">
$('#checkBoxInsertPF').click(function(e) {
@Model.CNPJ = $(".....................").Val('')
});
}