Published On : 17 Aug 2015
Today : 2 Total : 9910
This can be done in two ways. Either we can manipulate the HTML string and using some regex, we can remove the unwanted elements. Or else, we can go with JQuery to get the corresponding Elements and using the remove() method.
The syntax is very straight forward.
The above syntax will remove all the images within the Div “MyDiv”. In the same manner, we can remove all the unwanted Elements.
Though it looks very small, this will definitely save at least an hour of effort.