0
I have the following form:
<button type="button" id="remover<? echo $valor->int_cod; ?>" idProspect="<? echo $valor->int_cod; ?>" value="<? echo $valor->int_cod; ?>" class="btn btn-primary btn-xs pequeno remover"><? echo $valor->int_nome." - ".$valor->int_whatsapp; ?></button>
<input type="hidden" class="hide" idprospect="<? echo $valor->int_cod; ?>" value="<? echo $valor->int_cod; ?>" name="prospects[]">
I would like to click on it, be removed. I did it the secretive way:
$(".remover").click(function(){
var idProspect = $(this).attr("idProspect");
$("#remover"+idProspect).remove();
});
However, just removed the button, Hidden does not remove. How do I remove Hidden?