I am looking to implement a feature where the value of a double-clicked textbox is repeated until the end of the textbox. In my form, there are ten text boxes with different values. When I double click on the third textbox, I want the value of the third textbox to be repeated in all textboxes from the third to the tenth, while the first and second textboxes retain their original values. I have provided the code snippet below for reference.
http://codepen.io/nachicode/pen/dXKaaA/
Code Snippet:
HTML
<table>
<tr>
<th>One</th>
<th>Two</th>
</tr>
<tr>
<td>
<input Type="text" Value="1" />
</td>
<td>
<input Type="text" Value="1" />
</td>
</tr>
// More HTML code here
</table>
JQUERY
$(document).ready(function() {
$("input").dblclick(function() {
//Code implementation goes here
});
});