I have a form to register a client from sale. The action that should be performed is; that when clicking on the button of the new client the other fields are enabled. The event does not respond to any action. Here I have the part where I assign the button:
<div class="action_persona">
<h4>Datos de la Persona</h4>
<a href="#" class="btn_new btn_persona_venta"><i class="fas fa-user-plus"></i> Nueva Persona</a>
</div>
Here I have the code of the event function, which does not respond:
$(document).ready(function(){
//Activa campos para registrar personas
$('.btn_new_persona').click(function(e){
e.preventDefault();
$('#nom_persona').removeAttr('disabled');
$('#tel_persona').removeAttr('disabled');
$('#dir_persona').removeAttr('disabled');
$('#div_registro_persona').slideDown();
});
});
your selector is wrong
$('.btn_new_persona')
Well you can access your element as follows:
Or from the following:
That is why the event is not performing any action on you.