I'm having trouble loading these values into the jquery load.
Follow the code.
Javascript:
$('.buscando').click(function(){
var id = document.getElementById('campo1').value;
$("#cliente1").load('/wbahd/servico_servlet?acao=buscar&busca='+id);
});
This code makes the action take 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