3
In the table row above I have two inputs disabled in the columns vlcontrato
and valor
. I would like to click on the button alterar
these two inputs were enabled for me to edit them.
Once they are on the same line I tried to use the siblings method but I only succeeded if the button alterar
were within it td
that the input, but the button has to stay in one td
independent as in the image above!
How should I proceed to reach that operation?!
$('tr td .btn_alt').click(function(){
$(this).siblings('input[name=vlcontrato]').attr('readonly', false);
$(this).siblings('input[name=vlcontrato]').focus();
});