Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. /* When a button with id="submit" is clicked, get the value of an input field with id="input",
  2. * then insert that value into the element with id="output-area"
  3. */
  4. jQuery( "#submit" ).click(function(){
  5. var input = jQuery( "#input" ).val()
  6. jQuery( "#output-area" ).text( input )
  7. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement