0
In my project . Net MVC, I can’t get results on the Javascript view
@using Forte.Rastreador.ViewModels
@model SuperViewModel
<script src="~/Scripts/jquery-ui-1.8.24.min.js"></script>
<script type="text/javascript">
$(function () {
$("#datepicker").datepicker();
});
</script>
<fieldset>
<legend>Pessoa Física:</legend>
@Html.Label("CPF: ")
@Html.TextBoxFor(m => m.CPFPessoa, new { maxlength = "11" })
<br />
@Html.Label("N° de Identidade: ")
@Html.TextBoxFor(m => m.RGPessoa)
<br />
@Html.Label("Data de Nascimento: ")
@Html.TextBoxFor(m => m.DataNascimento, new { id = "datepicker"})
<br />
@Html.Label("Sexo: ")
@Html.DropDownListFor(m => m.Sexo, Model.GeneroList)
<br />
@Html.Label("Estado Civil: ")
@Html.DropDownListFor(m => m.EstadoCivil, Model.EstadosCivisList)
</fieldset>
not tah working !! tried the same way you posted but did not get result
– Hans Miller
I’m not seeing the jquery script or jquery ui css, in any case I changed the example for jQuery and jQueryUI CDN.
– Tobias Mesquita
the scripts are these?? <link href="~/Scripts/jquery-ui-1.11. 2/jquery-ui.css" rel="stylesheet" /> <script src="~/Scripts/jquery-ui-1.11. 2/External/jquery/jquery.js"></script> <script src="~/Scripts/jquery-ui-1.11. 2/jquery-ui.js"></script> The order is Correct?
– Hans Miller
Thanks partner was missing the scripts!!! I got success!!
– Hans Miller