jQuery one

07.Jul.2010

Use jQuery one to attach event that will be executed only once.

1
2
3
<a id="jQueryOne" href="javascript:void(0);" title="jQuery one">
	Tell me once!
</a>
1
2
3
jQuery('#jQueryOne').one('click', function() {
	alert('jQuery one: "I shall say this only once".');
});