Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/09/2010, 10:16
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Generar div con diferentes id en jQuery

Podes hacer algo así:
Cita:
idUnico = 0;

var datePickerHTML = function(id){
var html = "<div id='"+id+idUnico+"' class='ui-datepicker'>";
html += "Hello World, my ID is "+id;
html += "</div>";
idUnico++;
return html;
}