Fix the button label not showing

Jquery method deprecated.