$('.ajax').click
(
function()
{
// If been bound then we need to return here.
alert(':D');
}
)
$('.ajax').click
(
function()
{
// If been bound then we need to return here.
alert(':D');
}
)
In this case, I have called duplicate code. How do I detect if the event has been bound to prevent it from triggering two alert boxes?