So I have a modal with content that if there is no result it shows the option to search further basically. I have the button working, it makes an AJAX call and all that works well. What I am struggling with is what to do to show the new content. I have the JQUERY remove function working but when I try to use SHOW to display the new content I Am not getting anything. Am I along the right lines?
You will need to give more example code for help. If the tag with id = test2 is nested in the tag with id = test then it would be removed with the .remove() method. Other than that I’m not sure what is happening vs. what you expect to happen.
.remove() is deleting the element from the DOM, so using .hide() might fix your problem?