Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.listagem .listagem-item .info-produto > a').each(function(i) {
- var $this = $(this);
- var newClass = "nomep" + i++;
- $this.addClass(newClass);
- });
- function firstnomep(){
- var str = $(".listagem .listagem-item .info-produto .nomep0").text();
- var res = str.slice(0,15);
- $('<div id="name-prod">'+res+'</div>').insertBefore(".listagem .listagem-item .info-produto .nomep0");}
Add Comment
Please, Sign In to add comment