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

  • SEARCH
  • Home
  • 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 7545357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:54:24+00:00 2026-05-30T08:54:24+00:00

function fill (colname) { var numRows, i, toCopy, iterated_name; numRows = document.getElementById(‘malesTable’).rows.length + document.getElementById(‘femalesTable’).rows.length

  • 0
function fill (colname) {
    var numRows, i, toCopy, iterated_name;

    numRows = document.getElementById('malesTable').rows.length + document.getElementById('femalesTable').rows.length - 2;
    //gets number of rows, subtracts two for header rows(male and female)
    toCopy = document.getElementById(colname.id).value;
    i = 1;
    //iterate over id's and input values
    for (i; i <= numRows; i++){
    iterated_name = colname.id + "_" + i;
    document.getElementById(iterated_name).value = toCopy;
    }
}

It will work in chrome to autofill many fields, however it doesn’t in firefox. Why?

To clarify when inputs are put into the autofill box, it doesn’t copy the fields over as intended.

Here’s the jsfiddle

http://jsfiddle.net/hopup/tfEQM

  • 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-05-30T08:54:26+00:00Added an answer on May 30, 2026 at 8:54 am

    When you do this:

    fill(external_id);
    

    you’re passing in undefined in Firefox but passing in an element in Chrome because Chrome makes all elements with IDs pollute the global scope.

    Presumably you meant fill(document.getElementById("external_id")) ?

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

Sidebar

Related Questions

I simply want to fill-up cells in my spreadsheet from a VBA function. By
i have a function that fill up my SQLite DB with entries of a
I have created following function to fill field of a form page, there is
In the program, I have to create a function to fill elements in an
private var _product:Product; [Bindable] public function get product():Product { return _product; } public function
i am using a function to fill dictionary in a array here is the
I currently have this method: function fill_date_jaarlijks() { var today = new Date(); $(#datepicker_eind).datepicker(setDate,
Does SqlDataAdapter close the SqlConnection after the Fill() function or do I need close
quick question: I'm creating random polygons using either the patch() or the fill() function
Should functions that act on and object, say to fill it out from xml,

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.