I need to open the view create when I click on a button, how to do this for Jquery?
Button
<div class="col-md-3">
<button id="btnNovo" class="btn btn-info form-control" style="width: 200px"> Novo </button>
</div>
Script
<script>
jQuery(document).ready(function () {
$('#btnNovo').click(function () {
});
$("#filtro").on("keyup", function () {
var value = $(this).val().toLowerCase();
$("#myTable > tr").each(function () {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});
</script>
Action
// GET: Pais/Create
public ActionResult Create()
{
ViewBag.cadastradoComSucesso = false;
ViewBag.cadastroComErro = false;
PaisModel paisModel = new PaisModel();
paisModel.Ativo = true;
paisModel.DataCadastro = DateTime.Now;
paisModel.UsuarioCadastro = "USUARIO CADASTRO";
return View(paisModel);
}