I believe that what you want and that when leaving the date field, the event is triggered. For this you can use the event .focusout that is fired at the exact moment your element loses focus.
An example:
$('#dp1').focusout(function(){
//Coloque aqui o código que você precisa
});
Another event that can be used is the .Blur, the difference between . focusout and . Blur is that Blur is triggered when the element loses focus, the . focusout is triggered when the element, or any other element within it, loses focus.
I believe . Blur will apply better to your case.
$('#dp1').blur(function(){
//Coloque aqui o código que você precisa
});
yes and what is the problem with its masked functionData(this) ?
– SneepS NinjA
just put your jquery method here:
onkeyup="mascaraData(this);metodojQuery();"
or do according to my answer below.– Ivan Ferrer
Yes, I would like you to complete the field completion, perform a new function, which I will do for customer listing, for example.
– Sr. André Baill
But to make your list, first I need to know what that list would be, agree, and where you’re removing your list from.
– Ivan Ferrer
I will make a return Json, for listing of customers that is in the database... The scheme would be as follows: SELECTS DATE, SELECTS THE CLIENT, WHICH IN TURN LISTS THE CALLS MADE TO THIS CLIENT...
– Sr. André Baill
Make an exit with your
echo json_encode($array_dados)
.– Ivan Ferrer
and then capture it, as in this reply: http://answall.com/questions/77326/como-fazer-para-trazer-tabela-comdados-ao-retornar-de-um-insert/77697#77697
– Ivan Ferrer