Note that there are some explanatory texts on larger screens.

plurals
  1. POSelecting and setting value of the previous element of a last element
    primarykey
    data
    text
    <p>I have following list of text boxes added dynamically</p> <pre><code>&lt;tr class="dimensionStone"&gt; &lt;td&gt;&lt;input type="text" name="todayDimensionStones[].stoneNo" id="stoneNo" value=0 onclick="keyPressListener1(this.id)" onfocus="keyPressListener1(this.id)" Class="controlStock"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="todayDimensionStones[].length" id="length" value=0 onchange="findDimension(this.id)" onclick="keyPressListener(this.id)" onfocus="keyPressListener(this.id)" Class="controlStock"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="todayDimensionStones[].breadth" id="breadth" value=0 onchange="findDimension(this.id)" onclick="keyPressListener(this.id)" onfocus="keyPressListener(this.id)" Class="controlStock"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="todayDimensionStones[].height" id="height" value=0 onchange="findDimension(this.id)" onclick="keyPressListener(this.id)" onfocus="keyPressListener(this.id)" Class="controlStock"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="todayDimensionStones[].dimension" id="dimension" value=0 onchange="findDimension(this.id)" onclick="keyDownDisableListener(this.id)" Class="controlStock"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="todayDimensionStones[].isIssued" id="isIssued" value="No" onfocus="keyDownDisableListener(this.id)" Class="controlStock"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="todayDimensionStones[].status" id="status" onfocus="keyDownDisableListener(this.id)" Class="controlStock"/&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="#" class="removeDimensionStone"&gt;&lt;img src="images/1minus.png" width="20" height="20" title="Remove Dimension Stone"/&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>I have been using following jquery to set the value of first 5 elements to zero and last element to no value </p> <pre><code>$(rowElement).find("input").val(0); $(rowElement).find(":text:last").val(''); </code></pre> <p>But I cannot find jquery to reset the value of previous element of last element.I have searched more.Please help me </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload