Solved

What is [object htmlinputelement],[object htmlinputelement]?

Posted on 2014-12-01
4
86 Views
Last Modified: 2015-02-08
Hello,

I have the reference to an object which i think is a checkbox.  But when i do:

alert(MyObject);

i get:

[object htmlinputelement],[object htmlinputelement]

Open in new window

What is this telling?  Does MyObject contain two child objects?  How can i access each one?
0
Comment
Question by:soozh
  • 2
4 Comments
 
LVL 51

Expert Comment

by:Julian Hansen
ID: 40473496
Please show how MyObject was assigned.
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 500 total points
ID: 40474251
You can't alert a checkbox - it's just an object on the page, you can alert it's values/attributes
0
 

Accepted Solution

by:
soozh earned 0 total points
ID: 40474358
Well what was happening was i seemed to have two checkboxes with the same name so hence the Array of objects.  I was able to reference each using MyObject[0] and MyObject[1] but the real problem was that they should have had difference names.

Problem solved.
0
 

Author Closing Comment

by:soozh
ID: 40596659
With help from Gary i found the problem
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now