use attr method to reset styles only