Feeding all textbox on the basis of the value of first textbox jquery
<p>Hello I have many textbox with class "price",
All i want to do is feed all other textbox with the same value as the first textbox. here is my code but its not working.</p>

<pre><code>$firstprice=$("."+$sectionwrapper).find(".price").first().val();
$("."+$sectionwrapper).find(".price:eq(0)").nextAll(".price").val($firstprice);
</code></pre>

<p>where am i going wrong? any help will be appreciated.</p>

<p><strong>Edit</strong></p>

<p>Here is my HTML Code</p>

<pre><code>&lt;div class="section-1"&gt;
    &lt;div id="bookin-ad-wrapper"&gt;
        &lt;div class="booking-wrapper booking-wrapper-5"&gt;
            &lt;ul&gt;
            &lt;li&gt;&lt;label class="w50"&gt;Pris kr&lt;/label&gt;&lt;input type="text" value="" class="price numeric required" name="txtSection[1][5][price]" style=""&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class="booking-wrapper booking-wrapper-6"&gt;
            &lt;ul&gt;
            &lt;li&gt;&lt;label class="w50"&gt;Pris kr&lt;/label&gt;&lt;input type="text" value="" class="price numeric required" name="txtSection[1][6][price]"&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class="booking-wrapper booking-wrapper-0"&gt;
            &lt;ul&gt;
             &lt;li&gt;&lt;label class="w50"&gt;Pris kr&lt;/label&gt;&lt;input type="text" value="" class="price numeric required" name="txtSection[1][0][price]"&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p><strong>$sectionwrapper denotes class "section-1"</strong></p>

<p>Thanks</p>
