So i have this code:
function myOnFocus(){
$('tr').css("background-color","white");
$(this).parent().parent().css("background-color","blue");
}
$(".priority").focus(myOnFocus());
How can i call myOnFocus() with jquery .focus() event but without writing the whole function between those two parantheses?
using the
()calls the function ..