I'm trying to pass an input value to a different page after the new page loads. Is this possible with just HTML and jQuery?
here is my code:
<input id='search' type="text" size="100"/>
<button id='search-button'><p>G</p><img src='img/search.png' alt="GO"/></button>
<h1 class="show-result">Results for</h1>
//Jquery//
$('#search-button').click(function() {
var search = $('#search').val();
window.location.href = 'result.html';
$('.show-result').append( ' "' + search + '"');
return false;
});