How can I pass the $this (the self keyword) to a function in Jquery
$(document).ready(function()
{
$('.nav a').click(function() {
var direction = $(this).attr("name");
submit_form($(this))
});
function submit_form(this)
{
// do some stuff with 'this'
}
});