Freelancer:
s4bit
I have created the code as per your requirements
The input data is currently getting inside the javascript and can be changed into an html text input element if required. jsfiddle link: http://jsfiddle.net/0wqu2k15/2/
