Ver original$formulario .= '<input type="text" size="30%" name="fecha_inicial" id="fecha_inicial" onfocus="alert(\'aca\');" />';