Hi guys,

Trying to set up a simple search box which sends the keyword in a URL (to an external site), using jQuery.


If I search for 'peppers',

the url to be directed to should be:


So far I have:

PHP Code:
<html xmlns="http://www.w3.org/1999/xhtml">
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
title>Untitled Document</title>
script src="http://code.jquery.com/jquery-1.5.js"></script>

<input type="text" name="keyword" id="se" size="35"  onblur="if (this.value == '') {this.value = 'search...';}" onfocus="if (this.value == 'search...') {this.value = '';}" value="search..." class="text" />
<input type="submit" id="searchsubmit" class="submit" value="Send" />

<script type="text/javascript">
var keyword = $('#se').val();
window.location = http://www.domain.com/default.aspx?st=FT&ss="+keyword;

but it doesn work. Any ideas from someone more experienced with jQuery?