i need toogle on jquery, first time toogle runs, loaded data pops-up. following clicks slide ... can ?
here code ...
function visita(id){ $.ajax({ url: "visitaajaxgerenciar.php", type: "get", data: ({ visita_id : id }), datatype: "html", success: function(data){ $('#visitaajax_'+id).toggle( "slide" ).html(data); //ajaxjquery(); } }); }
thanks : )
change:
$('#visitaajax_'+id).toggle( "slide" ).html(data);
to:
$('#visitaajax_'+id).html(data).toggle( "slide" );
probably because before ajax callback element empty , don't see slide on element empty, set html first , toggle in callback.
Comments
Post a Comment