jquery on pass element into function code example
Example: jquery pass element to function
// use 'this'
$("button").click(function() {
$(this).css("background-color", "red")
})
// use 'this'
$("button").click(function() {
$(this).css("background-color", "red")
})