私はjqueryが初めてです。入力テキストの値を変更していて、次の入力テキストの値を変更する必要があるため、コードは次のとおりです。
$(document).ready(function() {
$('[type=text]').change(function() {
$(this).next('input').val("newvalue");
});
});
しかし、何も... !
編集: 以下のコメントから HTML を投稿する
<form method="post" action="/volume/create">
<table>
<tr>
<th><label for="volume_h1">H1</label></th>
<td><input type="text" id="volume_h1" name="volume[h1]"></td>
</tr>
<!-- .............. to volume_h24 -->
<tr>
<th><label for="volume_h24">H24</label></th>
<td><input type="text" id="volume_h24" name="volume[h24]"></td>
</tr>
</table>
</form>