Deshabilite (y vuelva a habilitar) los elementos href y onclick en los elementos
Solo quiero habilitar / deshabilitar onclick y href en elementos (a o div).
No se como hacer esto.
Puedo deshabilitar onclick agregando un controlador en evento click, pero href todavía está disponible.
$(this).unbind().click(function(event){
event.preventDefault();
return;
});
Editar ENCONTRÓ UN HACK PARA UN ELEMENTOS
if ($(this).attr("href")) {
$(this).attr("x-href", $(this).attr("href"));
$(this).removeAttr("href");
}