//Set the style when the text box and password box get focus
$("#tblReg input[type=text],#tblReg input[type=password]").focus(function () {
$(this).addClass("myFocus");
}) .blur(function () {
$(this).removeClass("myFocus");
});
Note that they are separated by commas