Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i am using the below code in my project js.


JavaScript
var isFound = document.getElementById("divErrorDetail").innerHTML.search(new RegExp(/<INS style="COLOR: green; FONT-WEIGHT: bold">/i));


it is working fine in ie8. but not working in IE9.

How to solve the problem.:-(


Thanks..
Posted
Comments
Ankur\m/ 3-Mar-14 7:06am    
Do you get any script error?
Break the code into multiple scripts and try each of them in Developer tool. See which part exactly is not working.

1 solution

You are matching pattern with regular expression. I think this link will help you.

http://www.regular-expressions.info/javascriptexample.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900