0
I’m having trouble loading these values in the jquery load.
Follows the code.
Javascript:
$('.buscando').click(function(){
var id = document.getElementById('campo1').value;
$("#cliente1").load('/wbahd/servico_servlet?acao=buscar&busca='+id);
});
This code does the action takes the parameter but does not load the page.
HTML:
<div class="form-group">
<label for="busca">Nome Servico*:</label> <input id="campo1" type="text" class="form-control" placeholder="Insira um nome para busca">
</div>
<a href="#" class="btn btn-default btn-cadastrar-btn buscando">Buscar</a>
</div>
Obg.
Open the console and see if an error has occurred, also make sure there is the element
<div id="cliente1"></div>
– Guilherme Nascimento