Answer the question
In order to leave comments, you need to log in
How to remove unnecessary code from returned ajax html?
For example, it returns an html code in which there is an input, but I don’t need it, how can I remove the input from this code?
Answer the question
In order to leave comments, you need to log in
Insert the resulting html into a temporary hidden div, carry out all the manipulations you need with it, and then transfer the resulting dom to the place you need and finally delete the temporary div
strreplace = function (search, replace, str){
return str.split(search).join(replace);
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question