'tinyMCE.execCommand on two different textarea on a single page

This is a JavaScript function to replace text on textarea with tinyMCE.

tinyMCE.execCommand('mceReplaceContent', false, text)

In my page I have two textareas with tinyMCE and I want to modify only one.

I have tried to do some research, but the research not solved this problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source