Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
   <form name="forms1">
    Enter Price: <input type="text" id="price1" onchange="fun()">   
     Value is: <span id="price"></span>    </form>
</body>
</html>
 
 function fun()
    {
        var x=document.getElementById("price1").value;
document.getElementById('price').innerHTML=x*2;    
    
    }
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
KingKongFrogpro
0viewers