Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- div = $('#container_principal_box_pesquisa');
- contador =1;
- for(i=0; i<data.length; i++){
- if(i < 5){
- div.append('<div id="box_pesquisa_'+contador+'">'+data[i]+'</div>');
- id = $('#box_pesquisa_'+contador);
- div.find('img').width(60);
- div.find('img').height(60);
- contador++;
- }
- }
- box1 = $("#box_pesquisa_1");
- box2 = $("#box_pesquisa_2");
- box3 = $("#box_pesquisa_3");
- box4 = $("#box_pesquisa_4");
- box5 = $("#box_pesquisa_5");
- box1.click(function(){
- alert('teste');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement