<button class="once">click me</button>
<script src="jquery.js"></script>
<script>
$(document).ready(function(e) {
$(".once").one("click", function(e){
alert( "This alert will be displayed only once." );
});
});
</script>
<script src="jquery.js"></script>
<script>
$(document).ready(function(e) {
$(".once").one("click", function(e){
alert( "This alert will be displayed only once." );
});
});
</script>
No comments:
Post a Comment