Skip to content

Instantly share code, notes, and snippets.

@sibaberpollo
Created February 29, 2016 15:20
Show Gist options
  • Save sibaberpollo/725dc8334b60f157addb to your computer and use it in GitHub Desktop.
Save sibaberpollo/725dc8334b60f157addb to your computer and use it in GitHub Desktop.
$('.panel-body section').each(function(index) {
if (index > 1) {
$(".panel-body").ready(function(){
$("<button>Contáctanos</button>").insertBefore("section");
});
}
});
@p1nox
Copy link

p1nox commented Feb 29, 2016

$('.panel-body section').each(function(index) {
    var $section = $(this);
    if (index > 1) {
      var $newBtn = $("<button>Contáctanos</button>");
      $section.append($newBtn);
    }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment