Maximum characters in input value

Hi Experts

Does the value property of an input control (select option, in specific), have an maximum allowed characters?

I want to store in the value property a long string of Values that I nee in my js..  I can use hidden fields, but I want to avoid clutter.

APD TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
I don't know of any character limit.  If it's not going to be user input, why not just put it in a javascript variable?
APD TorontoSoftware DeveloperAuthor Commented:
Is there a way to keep a JS variable "alive" during the entire time the page is loaded.

Simple example:

var count = 0;

Then you have an input button with onClick="increaseCount();"

function increaseCount(){

So, will count be alive?
Dave BaldwinFixer of ProblemsCommented:
'Alive' is an odd term to me.  Javascript variables are available at all times after a page is loaded.  Your example with 'count' should work fine.  Loading order can be important in that you can't use a function or a variable before it is declared.  That's true in all the languages I know about.

I have pages where the javascript variable values change depending things like buttons on the page.  They also get re-written when a form submit is done thru the validation routines.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
APD TorontoSoftware DeveloperAuthor Commented:
Thanks Dave!
Dave BaldwinFixer of ProblemsCommented:
You're welcome!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.