Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* When a button with id="submit" is clicked, get the value of an input field with id="input",
- * then insert that value into the element with id="output-area"
- */
- jQuery( "#submit" ).click(function(){
- var input = jQuery( "#input" ).val()
- jQuery( "#output-area" ).text( input )
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement