/*
.one() automatically unbinds the event specified as its first argument once it executes once. So clicking the button for the 2nd time won't pop out the nasty alert box again.
*/
$('#once').one('click', function(){
alert('Dont worry this click event will be unbinded once it executes for the first time');
});
<button id="once">Click Me</button>