title: Setting HTML textbox value using javascript function?
body: <p>I'm using this code to set the HTML textbox value using Javascript function. But it seems to be not working. Can anyone point out, what is wrong with this code?</p>
  
  <pre><code>Whats your Name?
  &lt;input id="name" value="" /&gt;
  
  &lt;script type="text/javascript"&gt; 
  function setValue(value){
  var myValue=value;
  document.getElementsById("name").value = myValue;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>the "value" is came from my android java class using this codes</p>
  
  <pre><code>String value = "Isiah";
      WebView web = (WebView) findViewById(R.id.web1);
      web.getSettings().setJavaScriptEnabled(true);
      web.loadUrl("file:///android_asset/www/webpage");
      web.loadUrl("javascript:setValue("+ value +")");
  </code></pre>