Writing into a document using Javascript
<pre><code>jQuery(document).ready(function($) {
        var devices = $(".menu-item-custom").map(function() {
            return this.id.substr(10);
        }).toArray();

        $.each(devices, function() {

            $("#menu-item-settings-"+this+" .description").eq(3).after("&lt;p class='description description-thin'&gt;&lt;label for 'translated_title_"+this+"_ar'&gt;عربي&lt;br&gt;&lt;input type= 'text' class='widefat edit-menu-item-title' name='translated_title_"+this+"_ar value='"+$(document).write('ssss')+"' '&gt;&lt;/label&gt;&lt;/p&gt;");

        });

});
</code></pre>

<p>Using this code I'm trying to write into the value attribute, but this error appears:</p>

<pre><code>Uncaught TypeError: Object [object Object] has no method 'write'
</code></pre>
