How to display div id value in form input
<p>I am trying to show JavaScript output value in form input.Bellow my div which output the value. </p>

<pre><code>&lt;div id="geo" class="geolocation_data"&gt;&lt;/div&gt;
</code></pre>

<p>But I want to show in input box. I tried bellow code but not showing any</p>

<pre><code>&lt;input type="text" placeholder="Please type a location" class="form-control input-lg noredius geolocation_data" value="" id="geo"&gt;
</code></pre>