posted 14 years ago
In the below code snippet , the innerdivhtml has the innerhtml of a big div element. In this, the "value" of the html tag that match the search are removed using regex.
This is code is working fine in IE7. BUT this code consistently fails in IE8.
var innerDivHTML = innerDiv.split(recLevel + 1).join(newRecLevel);
.
.
.
innerDivHTML = innerDivHTML.replace(/(NAME="RECORD\|)(\S*)(\s*)(value=")(\d*)(")/gi, "$1$2$3$4$6");
innerDivHTML = innerDivHTML.replace(/(value=")(\d*)(")(\s*)(NAME="RECORD\|)(\S*)/gi, "$1$3$4$5$6");
innerDivHTML = innerDivHTML.replace(/(NAME=RECORD\|)(\S*)(\s*)(value=)(\d*)/gi, "$1$2$3$4");
innerDivHTML = innerDivHTML.replace(/(value=)(\d*)(\s*)(NAME=RECORD\|)(\S*)/gi, "$1$3$4$5");*/
Please HELP.