Hi All,
I'm fairly new to jquery and I think this is simple but I'm struggling and google doesn't seem to be helping....
What I have is a basic form...
<form>
First Name: < input type="text" name="firstName" id="firstName" />
Surname: < input type="text" name="surname" id="surname" />
<input type="submit" id="submit" value="submit"/>
</form>
Now when submit is clicked I want to goto a url but then add the froms values to the url string (but not using the form method=get) basicly I want this to happen
on click of submit goto http://myurl.com/index.html?params=firstNamevalue*surnamevalue
I've been hacking about with the jquery but where I'm upto is something like this...
< script src="http://www.google.com/jsapi" type="text/javascript">< /script>
< script type="text/javascript">
google.load("jquery", "1.3.1");
</script>
< script type="text/javascript">
var = firstName $("#firstName").val();
var = surname $("#surname").val();
$('#submit').click(function(){
window.location = ???;
});
< /script>
hopefully I've been farily clear - I'd greatly appreciate any help!
Andy