Hi guys,

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

Eg,

If I search for 'peppers',

the url to be directed to should be:

http://www.domain.com/default.aspx?st=FT&ss=peppers



So far I have:



PHP Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
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>
</head>
<body>

<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">
$('#searchsubmit').click(function(){
var keyword = $('#se').val();
window.location = http://www.domain.com/default.aspx?st=FT&ss="+keyword;
});
</script>

</body>
</html> 
but it doesn work. Any ideas from someone more experienced with jQuery?