Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Html load stripping <form> tag

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);
}

}

like image 355
James123 Avatar asked Mar 13 '23 15:03

James123


1 Answers

You should check if you are nesting form elements, since chrome removes nested form tags.

related to your question:

Chrome removes form element when using jQuery ajax

How do you overcome the html form nesting limitation?

like image 75
Alfonso Avatar answered Mar 15 '23 06:03

Alfonso