|    
			
				27/01/2011, 16:44
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: enero-2011 Ubicación: Murcia 
						Mensajes: 1.024
					 Antigüedad: 14 años, 9 meses Puntos: 206 |  | 
  |  Respuesta: Migrar funcion JavaScript a función jQuery  
  
Código:
  function cargaestados(selectDestino, aspDestino){
	var vv1 = $('#estado_e').html(); //$('#estado_e').val() si es un input/select/textarea
	var vv2 = $('#icono_e').html();
	var vlink = "../estados/listing.asp";
	var link=$('#link');
	if (link.length>0 && jQuery.trim(link.html())!="") {
		vlink = link.html();
	} 
	$.ajax(function(){
		url: aspDestino,
		data: 'estado_e='+vv1+'&icono_e='+vv2+'&link='+vlink,
		success: function(respuesta){
			$('#'+selectDestino).html(respuesta);
		}
	});
}
     |