13
rated 0 times
[
15]
[
2]
/ answers: 1 / hits: 18763
/ 10 Years ago, wed, june 4, 2014, 12:00:00
I have this html code
<div>
<div><input id=wpsl-search-input1/></div>
<div><a id=wpsl-search-button1 href=# target=_self>submit</a></div>
</div>
And this jquery
<script>
$('#wpsl-search-button1').click(function() {
var url = '/pages/location-search/?';
$('#wpsl-search-input1').each(function() {
url += 'zip=' + $(this).val() + &;
});
window.location.replace(url);
});
</script>
But for some reason it doesn't work. Any help ?
More From » jquery