javascript not able to update value of input box : <p>I have some input box. Here is the HTML</p>

<pre><code>&lt;input name="dog_shipping_price"  class="input" id="shipping_price_&lt;?php echo $id; ?&gt;" value="&lt;?php echo $shipping_price; ?&gt;" /&gt;
</code></pre>

<p>In some javascript i am trying to update its value</p>

<pre><code>$('.shipping_price_'+item.id).val(parseFloat(item.shipping_price));
</code></pre>

<p>i also tried </p>

<pre><code>$('.dog_shipping_price').val(parseFloat(item.shipping_price));
</code></pre>

<p>i verified that <code>item.id</code> is the right value and item.shipping_price is also there with the following:</p>

<pre><code>console.log(parseFloat(item.shipping_price));
</code></pre>

<p>when i run my code the input box value is not updated</p>
