how to create a variable to hold input data in jquery code example
Example: store the text from a form jquery
$('form').submit(function(e) {
e.preventDefault();
var input = $('#search').val();
$('p').append(input);
});
$('form').submit(function(e) {
e.preventDefault();
var input = $('#search').val();
$('p').append(input);
});