Hi
im messing around with some jQuery and want to disable a link whilst it performs a ajax post (its adding/fetching somthing from a database) and i want to disable the link so it cant be multiclickd.
<a href=\"#\" id=\"seepages\">See Page</a>
ive tried using
$("#seepages").unbind('click');
but that dosnt work! =(
how ever when i tried this
$("#seepages").unbind('click');
$("#seepages").attr("id", "disabled");
that works! but using either one of them by them self doesn't - work but why?
any advice/tips would be useful! thanks in advance =)
edit:
i should also have said that i have to use:
$("#disabled").attr("id", "seepages");
$("#disabled").bind('click');
to enable it again