Skip to content

Instantly share code, notes, and snippets.

@ilmoralito
Created December 10, 2014 17:53
Show Gist options
  • Save ilmoralito/646ac462b2aea4d6de60 to your computer and use it in GitHub Desktop.
Save ilmoralito/646ac462b2aea4d6de60 to your computer and use it in GitHub Desktop.
anular evento click
$("#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