Using Jquery to remove text from div

haynespiggy

New Member
I'm using the following jQuery code to remove the text "(2012)" from a specific div.\[code\]var el = $("#myDiv"); //replace(/word to remove/ig, ""); el.html(el.html().replace(/(2012)/ig, "")); \[/code\]This works great at removing the 2012, however the brackets () remain. How do I tell the jquery that the \[code\]()\[/code\] is not code but text I wish to remove as well?
 
Back
Top