jquery - ajax.actionlink replace vs replacewith -


I am using Ajax.ActionLink in a code, I have ASP.NET- The MVC application and I am using InsertionMode.Replace , but I see that there is also a ReplaceWith option. What is the difference between the two? Does something more / less change compared to each other, I need to replace it with a completely partial view instead of replacing it.

I can not find a comparison anywhere on Google

change will replace content with new content. Change will replace the entire element.

  & lt; Body & gt; & Lt; Div id = "myResults" & gt; & Lt; P & gt; Results will appear here & lt; / P & gt; & Lt; / Div & gt; & Lt; / Body & gt;  

feedback from ajax

  & lt; Span & gt; This result is & lt; / Span & gt;   

with change option targeting myResults

  & lt; Body & gt; & Lt; Div id = "myResults" & gt; & Lt; Span & gt; This result is & lt; / Span & gt; & Lt; / Div & gt; & Lt; / Body & gt;   

Replace option targeting myResults

  & lt; Body & gt; & Lt; Span & gt; This result is & lt; / Span & gt; & Lt; / Body & gt;  

Comments