I have a block of HTML stored in a variable called address_form, within that block of HTML I want to remove, or replace, a portion of it. The part I want to replace is a div with an ID of address_container.
There’s clearly something wrong with my RegEx here that i’m using with the replace function as it is not working:
var tempStr = address_form.replace('/\<div id=\"#address_container\"\>.*<\/div\>/', '');
I simply want to replace a string, within a string.
From @RidgeRunner