One id have two dynamically numbers _ separated. update only one using jQuery
<p>I have some input text fields and I assigning id "parent_number and row_number" dynamically with jQuery to it when press button of addMore.</p>

<pre><code>&lt;input type="text" name="xpath" id="xpath_chield_'+parent_number+'_'+row_number+'" size="50"/&gt;
</code></pre>

<p>it's out put in browser is</p>

<pre><code>&lt;input id="xpath_chield_2_3" type="text" size="50" name="xpath"&gt;
</code></pre>

<p>This works fine </p>

<p>After deleting one input field I want to update only "parent_number" to -1 from current parent_number of id but not "row_number"</p>

<p>After update it will output in browser will</p>

<pre><code>&lt;input id="xpath_chield_1_3" type="text" size="50" name="xpath"&gt;
</code></pre>

<p>How can I do it with jQuery?</p>

<p>Thanks</p>
