I am trying to replace <noscript> tags with [noscript] in the OnClientSubmit function but when I click the submit button nothing happens. Can you tell me what I'm doing wrong?
function OnClientSubmit(editor, args) {
var content = editor.GetText();
if (content) {
newContent = content.replace('<noscript>', '[noscript]');
newContent = content.replace('</noscript>', '[/noscript]');
}
<%=textEditor.ClientID%>.Submit();
return false;
}