Hi, i have this problem: i need to remove the "disabled" attibute from the siblings inputs of submit input. Here is the html:
<td>
<input type="hidden" value="2000000000002_STATUTO_07_10_2010.gif" name="nomeDocumento" disabled="true">
<input type="hidden" value="811ecdd0-65e9-49d6-8d9d-8b7c9d9b6407" name="UUID" disabled="true">
<input type="submit" value="cancella" name="cancella">
</td>
i need a simple way using jquery to remove the disable attribute when i click on the submit. I tried:
$('input[name=cancella]').click(function(){
$('this').prev().removeAttr('disabled');
$('this').prev().prev().removeAttr('disabled');
}
But i doesn't work.
Any suggestion?