jQuery重新加载div的内容(动态呈现)

我有一个div通过Expression Engine生成html。 我正在使用ajax提交:

$('#login-form').ajaxForm({ // success identifies the function to invoke when the server response // has been received; here we apply a fade-in effect to the new content success: function() { $("#panel").RELOAD!!();//Just refresh this div! } }); 

我只想让#panel div重新加载/刷新。

我假设你在寻找类似的东西:

 $('#login-form').ajaxForm({ success: function( data) { $("#panel").html( data);//Will insert new content inside div element. } }); 

固定:

 $('#login-form').ajaxForm({ target: '#panel', //Will update the "#panel" success: function( data) { alert( "Success"); } }); 

几乎jQuery的“操作”部分中列出的任何方法都可以满足您的需求: http : //docs.jquery.com/Manipulation

而你的漂亮淡出

 success : function(data) { $("#panel").hide().html(data).fadeIn('fast'); }