Problems in code:-
Why have you written
function ShowRichTextEditor(id)
two times ?
And there is one closing bracket
}
which is extra.
Suggestion:-
You can use
1.
jshint[
^] to find out problems in your code.
2. FireBug Error Console window in Firefox to check all the script and css errors.
Try to make your javaScript code error free and then test.
Solution after discussion with OP
Actually the id will not be the same when you use Master Page.
The id will be no more
txtRemarks
, there will be one prefix added to this id.
You can check the html in browser.
So, the id will be
_________txtRemarks
.
For this you have to get the client id of that textbox like below...
<%= txtRemarks.ClientID %>
Else you can make that textbox ClientID Mode static, so that id will not change.
Refer -
1.
Control.ClientID Property.
2.
How do I pass a server control's actual client Id to a javascript function?.