-
-
Save ilmoralito/646ac462b2aea4d6de60 to your computer and use it in GitHub Desktop.
anular evento click
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#trigger").on("click", function(e) { | |
var count = $('.phonesClient').length; | |
$(".phonesClient:last").clone().insertBefore($(this)).find('input'); | |
if (count > 3){ | |
$(this).off('click') | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment