Disable button

0

I want to click on a h:commandButton that is within a modal of disable a button that is inside a panel.

I tried to do it with

asked by Lina Cortés 07.05.2016 в 22:36
source

1 answer

2

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);
});
    
answered by 08.05.2016 в 04:50