I am using an empty div in which i am assigning values through an external javascript via ajax call I am also using an fck editor what I want to do using an internal javascript I want to set the contents of that div in the textarea of fckeditor but in the internal javascript when I am accessing the contents of that div then it is showing “undefined”.
Share
You can use setAttribute method to set ‘value’ attribute of an attribute.
let take an example:
To insert a new DIV directly above “george”, so the outcome becomes:
You would do the following: