Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7908065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:45:00+00:00 2026-06-03T11:45:00+00:00

jQuery(document).ready(function($) { var devices = $(.menu-item-custom).map(function() { return this.id.substr(10); }).toArray(); $.each(devices, function() { $(#menu-item-settings-+this+

  • 0
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("<p class='description description-thin'><label for 'translated_title_"+this+"_ar'>عربي<br><input type= 'text' class='widefat edit-menu-item-title' name='translated_title_"+this+"_ar value='"+$(document).write('ssss')+"' '></label></p>");

        });

});

Using this code I’m trying to write into the value attribute, but this error appears:

Uncaught TypeError: Object [object Object] has no method 'write'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:45:00+00:00Added an answer on June 3, 2026 at 11:45 am

    The error is that there’s no write function on $(document) (which is not the same as document).

    But perhaps more to the point, you’re creating a string to pass to .after. That’s no place to be writing to the document. The following will suffice, for creating a string:

    value='" + 'ssss' + "'
    

    (assuming 'ssss' will in production code be a variable, otherwise there is of course no need for concatenation at all)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this how you define a function in jQuery? $(document).ready( function () { var
I have this code in jQuery.. $(document).ready(function(){ var fieldCounter = 0; ... I have
I have a working script like this: jQuery(document).ready(function(){ $('.video-thumb img').bind('mouseover',function(){ var new = $(this).attr('src').replace(/default.jpg/,'1.jpg');
jQuery(document).ready(function(){ var panelContainer = jQuery('div#panels'); jQuery('<div id=tabs></div>').insertBefore(panelContainer); panelContainer.find('div.panel').each(function(n){ jQuery('div#tabs').append('<a class=tab href=#' + (n+1) +
I have a jquery ex like this.. jQuery(document).ready(function() { var refreshId = setInterval(function() {
Consider this: Math.__proto__.eps=1e-16; jQuery(document).ready(function() { var chart = new Highcharts.Chart({ //... }); }); Quite
Could anybody tell me what is wrong with this code ?? jQuery(document).ready(function(){ var val
jQuery(document).ready(function(){ $(#button).submit(function() { { var email_id=document.getElementById('textfield').value; var password=document.getElementById('textfield2').value; var utype=document.getElementById(utype).value; var url=login_check.jsp?&email_id=+encodeURIComponent(email_id)+&password=+encodeURIComponent(password)+&utype=+encodeURIComponent(utype); $('form').get(0).setAttribute('action',url); alert(document.form1.action);
I have the following JQuery code: $(document).ready(function () { var $containerHeight = $(window).height(); if
jQuery Code: $(document).ready(function(){ $.getJSON('dat.js', function(data) { var obj = JSON.parse(data); alert(obj[0].title); }); }); My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.