0
I’m making a query in my comic in a janela modal
, now after the query made, need by clicking a send button the selected parameters to the calling page and play these parameters in some inputs
, had previously done so using a url
return the desired values by closing modal
, but had a problem, this caused a new page loading causing the previously filled data from other fields to be lost.
I did this by clicking send button:
<button type="button" class="btn btn-primary btn-mini" data-toggle="modal" onclick="EnviaDados()"> enviar </button>
<input id="NomeCooperante" type="hidden" value="<?php echo $Retorno->NomeCooperante; ?>" />
And on the return page like this:
function EnviaDados() { $('#ModalCooperante').modal('hide'); // var valor = $('input[type="text"][name="NomeCooperante"]').val(); var NomeCoop = $(this).attr("NomeCooperante"); alert("COOPERANTE: " + NomeCoop); }
I did some tests, the result of Alert is being:
COOPERANTE: [Object HTMCollection]
What I have is this, the search:
And the fields I need to fill in on the return.
Can you include a example of code that reproduces what is happening?
– Sorack