0
I have this edit button which is always available for editing:
<a type="button" name="edit3" id="'.$row["Id"].','.$row["IdConsulta"].'" data-toggle="modal" href="#add_data_Modal3" class="btn btn-primary edit_data3">Editar</a>
I wanted it to be active only at the moment a new record is made in the database table and at midnight of that same day again to be deactivated, and at the moment it is active only allow to edit the new record inserted, in the old records which can be consulted still appear unobtrusive or hidden.
put the script with the function inside the
head
and call it on the button as followsonclick="minhafuncao()"
but I get this mistakeUncaught ReferenceError: novoRegistro is not defined
– Bruno
may only explain to what
novoRegistro
?– Bruno
the newRegister variable would be a boolean that would be returned from some function that checks if any new record has been added.
– Marcelo Martins
ok, I have to see how to create this function to do this check. I never created
– Bruno
can help create this function to check if the new registration has been added? I am not getting it
– Bruno
function to check if there has been new registration, can be the function that is in Ajax Success?
– Bruno
I have not yet been able to solve this problem that I posed in this question, it may help me to apply its solution?
– Bruno