I’m trying to convert some javascript that gives the user a prompt into an html form that displays the output in a span. I’ve been searching the net but haven’t found a way to do it that I can understand.
This is my code: http://jsfiddle.net/nickykw/tMXmj/15/
I’d like the output of the script to be displayed in the “outp” span. If anyone can point me in the right direction I’d be grateful.
Thanks
This will help you if you are allowed to use jQuery and you name your controls. If you are not allowed to use jQuery I hope you get the idea.
Fiddle: http://jsfiddle.net/Q2P7H/