How to disable and REenable a link.
I need to be able to disable a link upon clicking an agreement. Here is what I currently have, I am trying to make a custom button for jcryption.
accept : function(checkbox){
if(checkbox.checked){
$("a.trans-30").addClass("submitx").removeClass("trans-30").removeClass("disabled-button").removeAttr("onclick");
$("a.submitx").bind("click", function(){
$('a.submitx').trigger('jCryption');
$("a.submitx").addClass("submitDisabled").removeAttr("onclick").unbind("click").html("<span>" + processingStr + "</span>");
});
$("#disable").removeAttr("disabled");
$("p.clickTou").addClass("acceptedTou");
$("p.terms").fadeOut(295);
}
else if(!checkbox.checked){
$("#disable").attr("disabled", "disabled");
$("p.clickTou").removeClass("acceptedTou");
$("p.terms").fadeIn(500).html("<b><em>*</em> You must accept the Terms of Use.</b>");
$("a.submitx").addClass("trans-30").addClass("disabled-button").removeClass("submitx").unbind("click");
}
}