0
I want to do it with JQUERY’s prop() method, so that the edge of a field element gets a red color around it if it is empty or the information is incorrect, I am working on a date function that compares whether the end date is less than the initial, then put the focus on that final date field to be fixed, as is more or less the scheme to effect this, I tried below, but I did not get the effect:
<input type="text" placeholder="Teste" id="teste" name="teste" />
$("#teste").click(function(){
$(this).prop('type', 'css');
});
Could someone help me in this detail with some example, thanks in advance.
So you’ll get 2 inputs right? You want to check as the user chooses the dates or when to try to send it?
– Sergio