I have 2 different event on different classes :
$(\'.box1\').click(function(){ $(this).find(\'something\').css(\'red\') } $(\'#otherId .box2\').change(function(
this is a keyword so it can't be a param name
this
function getDetails(el) { el.find(".something").css('red'); } $('#otherId .box2').change(function () { getDetails($(this)) })