125
rated 0 times
[
126]
[
1]
/ answers: 1 / hits: 19365
/ 14 Years ago, fri, july 30, 2010, 12:00:00
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'
}
});
More From » jquery