Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- $("#codigoCompany").keyup(function () {
- var a = $("#codigoCompany").length;
- if (a => 4) {
- var nombre = $("#codigoCompany").val();
- $.ajax({
- url: '/Facturas/buscarCodigo?nombre=' + nombre,
- success: function (data) {
- if (data.status == "ok") {
- $("#txtCliente").val(data.resultado);
- } else {
- alert("paso algo raro");
- }
- }
- })
- }
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement