I want to generate random number in this input box by clicking the button.. What is the problem here??
 function myFunction() {
    var x = document.getElementById("demo");
    x.innerHTML = Math.floor((Math.random() * 100) + 1);
 }<button onclick="myFunction()">Try it</button>
<input type="text" name="demo" id="demo" value="" size="13" disabled="disabled" /> 
     
     
    