I am loading partial view through ajax call html(). I can see response has <form> tag in chrome javascript debug. But when it loads to source it is disappearing. I can rest of the html except tag.
I am loading under another tag. I don't know what is the issue here?
var HandleGetEditPhone = function (response) {
if (response !== "") {
$('#DivPhoneContainer').html(response);
}
}
You should check if you are nesting form elements, since chrome removes nested form tags.
related to your question:
I faced the same issue. The following snippet worked for me.
var HandleGetEditPhone = function (response) {
if (response !== "") {
$('#DivPhoneContainer').empty();
$('#DivPhoneContainer').html($(response));
}
}
Do let know if it solves your issue.