I have an onblur event to call a function and this function has to call a php class to be able to compare what was typed in the input with what is in my DB, but I do not know how to do that using jquery, how do I do this?
HTML
<html&...
As I'm not aware of javascript I need a help on how to make this script work in the loop.
His problem is that auto complete only works on the first line. if we add another line it will no longer work.
Run the script and test you will see t...
How do I get the PHP query values in AJAX?
AJAX
$.ajax({
type: 'post',
dataType: 'json',
url: 'listaGabaritosSelecionados.php',
success: function(url){
$('.retorno').html(url);
}
});
PHP
$mysqli = new mysqli("l...
I have a table with several users, each line has a Button to delete that particular record, I have the following code:
$('body').on('click', 'button[name="btn-delete[]"]', function (e) {
e.preventDefault();
var action = $(this)...
Friends, good morning!
I have a form in php where I have to perform maintenance, but it was not me who developed it, the old analyst is no longer in the company.
In this form, there is a field where the person types a locator code (company...
I have a composite key table (PersonId and ProfissaoId). The PersonId property is in a hidden and ProfissaoId gets accumulated in a data-id. Stays two information must be passed to the controler so I can delete the record. Currently, I have this...
I want a script in ajax that on the page I return the content to write in a div and a variable to use in the link of tag "A".
<a href=" escrever a variável aqui Y ">volta</a>
<br>
<div> escrever a conteudo...
I'm trying to make the request to a third-party API via the following code:
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script><script>$(function(){$.post({url:url,contentType:"application/json;...
I have this function in AJAX to update the data of a table, the data is coming correct from the controller, however it does not update with the correct data, it updates blank.
function buscaFornecedores(id) {
var url = "/Produto/BuscaFornecedor...
I have this AJAX function to update a table, it looks like this:
function incluirFornecedor(idItem) {
var url = "/Produto/incluirFornecedorN";
$.ajax({
url: url
, data: { id: idItem }
, type: "POST"
, d...