Disable link_to_remote tag

Hi,
i have two link_to_remote tag,suppose when i click any one,
the corresponding link is disable,and other link is clickable
and
vice versa also…is it possible ??please help with
certain code or link.its urgent.