how do I pass context and a pentameter to a external function from a click event
error: TypeError: i.handler.apply is not a function
var myF = function(car){
alert('a click ' + car.model + ' ' + car.year);// alert the car that was passed in
$(this).css({'border':'1px solid red'}); // make border red of the div that was clicked
};
var myCar = new Object();
myCar.make = "Ford";
myCar.model = "Mustang";
myCar.year = 1969;
var myCar2 = new Object();
myCar2.make = "VW";
myCar2.model = "golf";
myCar2.year = 2000;
$('.cross-browser').click(this,myCar,myF);
$('.lightweight-footprint').click(this,myCar2,myF);