I want to click on a h:commandButton
that is within a modal of bootstrap disable a button that is inside a panel.
I tried to do it with
Solution with jQuery and assuming there is only one element with id="boton"
:
$('#boton .btn').click(function (e) {
// Si deseas seguir haciendo el submit, ignora la siguiente línea
e.preventDefault();
$('.greenPanel button').prop('disabled', true);
});