Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/08/2013, 11:38
lilmaster
 
Fecha de Ingreso: agosto-2013
Mensajes: 99
Antigüedad: 10 años, 8 meses
Puntos: 3
Respuesta: Imprimer varios divs

Es sencillo

Código HTML:
<!doctype html>
<html>
<head>

<script src="http://code.jquery.com/jquery-1.9.1.js"></script><!--Libreria jquerY CDN-->

</head>

<body>
  <div id="divisores">
  
  </div>
  
<script>
  
  for(var i=0 ; i<5 ; i++){
	  
	  $("#divisores").append('<div id="productos" style=" background:#C99;width:50px; height:50px; margin-bottom:20px"></div>');
	  
	  }

</script>  
</body>
</html> 

usaria class para esos divs en vez de id