Board Thread:Support Requests - Getting Technical/@comment-27023597-20151114042741/@comment-27023597-20151117015459

I have written a part of the code like this: Please input the current level:



Submit

function myFunction { var x, text;

x = document.getElementById("numb").value;

var x = 250+(550+150*(x-2))*(x-1);

text = x;

document.getElementById("demo").innerHTML = text; }

Then, I got a problem that the text variable will replace the whole demo paragraph.

But I want to insert an image right before text variable at the beginning of demo`s paragraph like:

How can I do that?