jquery pass html element to 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")
})