Why is it always 'I am employed'? How is it done to act according to the selected radio button?
$(document).ready(function() {
$('.EmpCli').change(function() {
var valor = $('.EmpCli').val;
if (valor = 'empleado') {
alert('soy Empleado');
} else if (valor = 'cliente') {
alert('soy cliente');
}
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<label>Cliente</label>
<input type="radio" name="EmpCli" class="EmpCli" value="cliente">
<label>Empleado</label>
<input type="radio" name="EmpCli" class="EmpCli" value="empleado">