I have n buttons. This button has the same name: setAlg.
I would disable all the buttons that has this name.
I have tried
$(\"input[name=
I think you forgot quotes
$("input[name='setAlg']").attr('disabled','true');
If this doesn't work then maybe your selection doesn't work