• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 114
  • Last Modified:

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

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
soozh
Asked:
soozh
  • 2
2 Solutions
 
Julian HansenCommented:
Please show how MyObject was assigned.
0
 
GaryCommented:
You can't alert a checkbox - it's just an object on the page, you can alert it's values/attributes
0
 
soozhAuthor Commented:
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
 
soozhAuthor Commented:
With help from Gary i found the problem
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now