I have a simple input field inside a form tag:
Input
I'd need to see the whole file but my guess is either you aren't including the jQuery.js source file or you have multiple elements with an ID of foo
foo