object HTMLInputElement error with .value

I have a problem with returning "[object HTMLInputElement]", this is my code: HTML: <input type="text" id="numb7"> JavaScript: var numb7 = document.getElementById("numb7").value;When I alert numb7 it returns:[object HTMLInputElement] Can anyone help me?

For the full code: Full Code


Perhaps it's an old MSIE compatibility feature where all id and name attributes are added to the global object. Try giving your variable (or id) a different name.

Need Your Help

Validate input field, display error on submit and stop dialog open if error

javascript validation alert

I have a problem trying to validate my input field and alert the error, if number is below 50, i would like to know how to display an error popup (alert, or what ever), but to stop opening dialog m...

ios car drive guide - real time

ios gps real-time mapquest

I'm trying to make an iOS drive guide app that takes current localization and prints a route (on map) from user loc to some target point.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.