form

+2 Parul Bhagat · January 9, 2016
How can I get the value the user entered in a form element and use it in a function?

Post a Reply

Replies

Oldest  Newest  Rating
0 Scott Walker · January 9, 2016
Use Jquery.

e.g. if your input has an id of ex.

var user_input = $('#ex').val();


user_input is now equal to whatever is in your input
  • 1

Javascript

106,991 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators