Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/08/2012, 13:00
Avatar de Dradi7
Dradi7
 
Fecha de Ingreso: junio-2008
Ubicación: Peru - Lima
Mensajes: 1.518
Antigüedad: 15 años, 10 meses
Puntos: 220
Respuesta: Agregar inputs dinámicamente

Cita:
Iniciado por beeman00 Ver Mensaje
Claro que hay forma:

Código Javascript:
Ver original
  1. $('#addScnt').live('click', function() {
  2.                 $('<p><label for="p_scnts"><input type="text" id="p_scnt" size="20" name="p_scnt_' + i +'" value="" placeholder="Input Value" /><input type="text" id="p_scnt" size="20" name="p_scnt_' + i +'" value="" placeholder="Input Value" /><input type="text" id="p_scnt" size="20" name="p_scnt_' + i +'" value="" placeholder="Input Value" /></label> <a href="#" id="remScnt">Remove</a></p>').appendTo(scntDiv);
  3.                 i++;
  4.                 return false;
  5.         });
Pero no entiendo porque la gente aun sigue usando live si el mismo JQuery ya lo dio por deprecado traten de usar el on o el delegate
__________________
La clave de todo triunfador es eliminar todas sus excusas y sus limitaciones