acessing form elements by name

acessing form elements by name

I can access a form using
$(this).closest("form")

what do I do to access one of the form's hidden element by name?

$('input[@name=foo]') does not work for this purpose because there may be more than 1 foo. 
I need the foo of that particular form.