I'm trying to write a function that will get content from input element and try to format numbers entered in input box in MM/YY. Following is a solution that I've, I want to reduce numbers of lines it has. Can anybody help me write a better function to do this? I'm trying to write a function that will get co