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 7653885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:08:17+00:00 2026-05-31T12:08:17+00:00

Right now i am getting elements from form using getelementTagname in two differenet variables.But

  • 0

Right now i am getting elements from form using getelementTagname in two differenet variables.But now i want to join them so that i can access them in a single variable.concat and join are not working , any suggestions ?

My code :-

var inputsi = frm.getElementsByTagName("input");
var inputst = frm.getElementsByTagName("textarea");

now i want to get them in a single variable by joining .

  • 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-31T12:08:18+00:00Added an answer on May 31, 2026 at 12:08 pm

    getElementsByTagName returns a host object. Though the elements in that object can be accessed like an array, it is not an actual array. so concat and append won’t work.

    use jQuery for getting elements:

    var elements = $("input, textarea"); // return you all the textareas and inputs in a single variable
    

    or use for loop to copy all elements from both variables into a new array.

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

Sidebar

Related Questions

I need some help. Here's what I'm getting right now: img ref I need
Just getting into SQL stored queries right now... anyway, here's my database schema (simplified
Right now, I'm particularly interested in reading the data from MP3 files (ID3 tags?),
Right now, I have two Eclipse projects - they both use Maven 2 for
I am getting responses from two different web services in XML format. Both web
Right now i am successfulling getting the value of an element by doing this:
I'm getting into HTML right now and today I'm learning about page layout. I
Just getting started with XPath, and using it's implementation with PHP's SimpleXML objects. Right
I am just getting started with Backbone.js , but it looks really interesting... Right
My app is using htmlagility pack. As of right now I can get all

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.