2
I’m having problems need to store the value of two time values and minutes in the database.
Here is the input
and the jQuery
<input type="time" name="txthoraentrada" id="txthoraentrada"class="form-control" required>
var hrentrd = $('#txthoraentrada').val();
Remarks:
- I tried to use
val('HH:mm')
, but does not save the values in the database and displays a Warning that is out of standard, even though this is one of the standards that the Warning speech is valid. - I tried using the plugin
timepicker
. Didn’t work out :( - I’m using
jQuery
,AJAX
andPHP
. - The field is of the type
time
in the database - Is recording
00:00:00
on the bench. I appreciate any help.
When use val('HH:mm:ss') does not send. And when use only val() saves as 00:00:00 regardless of the value I place.
– Diego_F
I solved the problem, it was my php file that was incorrect.
– Diego_F
@Diego_f send your solution as a response and then accept it as the correct answer so that if someone else has this problem can solve and the question can be closed in the forum.
– Leticia Rosa