How do I take input/output from a form and store it in a JS variable?

Posted by marcamillion on Stack Overflow See other posts from Stack Overflow or by marcamillion
Published on 2010-04-13T00:03:45Z Indexed on 2010/04/13 0:12 UTC
Read the original article Hit count: 679

Filed under:
|
|

I am creating the UI of a web app, and haven't done any back-end work yet.

For testing purposes, I want my forms to be able to work, so I want to take the input they have received and store it in javascript variables so I can access them, using jQuery.

Everything I have looked at, tells me how to pass js variables into the form, not the other way around.

Any ideas?

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css