input mask example

input mask example

Hello, I'm new to jquery.  this example from JSFiddle works on JSfiddle, but I'm unable to run the same on 
w3schools tryit editor. 

can anyone help?