0
I have this code, where I would like to disable it when performing a function, and after finishing, enable it.
<th href="#" style="text-align:right"><a title="Validar Pedido" id="btnValidar" onclick="Validar();" class="btn btn-info"><i class="fa fa-lg"></i>Validar</a></th>
I’ve tried to:
$('#btnValidar').prop("readonly", true);
$("#btnValidar").prop("disabled", true);
$("#btnValidar").attr("disabled", true);
$("#btnValidar").attr("disabled", "disabled");
But no one disables.
There is an error, where the function validate();?
– Jorge B.
@Jorgeb. In this case it does not even make difference, if she did not put the function in the question I think it would not make difference to her, ai was of my interpretation of the question even... To my understanding the problem was only because the function of it was not able to put p
disabled
in <a>, and the answer is that <a> cannot receive this attribute, as it is not a global attribute of this type of tag... :)– hugocsl
Yeah, but you could at least put that to work ;)
– Jorge B.