I want to increase the variable of each of the fields
( NUMERO_ITEM1
, DESCRIPCION_ITEM1
) dynamically, that is
DESCRIPCION_ITEM1
, DESCRIPCION_ITEM2
... DESCRIPCION_ITEMn
...
By means of variable $post
I made the query.
$(document).ready(function() {
$("#resultadoBusqueda").html('Vacio'); });
function buscar() {
var textoBusqueda = $("#NUMERO_ITEM1").val();
if (textoBusqueda != "") {
$.post("buscar.php", {valorBusqueda: textoBusqueda}, function(mensaje) {
$("#DESCRIPCION_ITEM1").html(mensaje);
});
} else {
$("#DESCRIPCION_ITEM1").html('Vacio'); };