テーブルに一連のテキスト ボックスがあり、Shift + 下矢印キーを押して複数のテキスト ボックスの値を選択したいと考えています。テキストボックスを選択している間、値をコピーして配列に保存する必要があります...誰か助けてください...
<style>
#feedback { font-size: 1.4em; }
#selectable .ui-selecting { background: #FECA40; }
#selectable .ui-selected { background: #F39814; color: white; }
#selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
#selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; }
</style>
<script>
$(function(e) {
$( "#selectable" ).selectable({selected: function( event, ui ) {alert(this)}});
});
</script>
<body>
<table width="78%" border=1 id="selectable" style="border-collapse:collapse">
<tr>
<td><input type="text" class="ui-widget-content" /></td>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
</tr>
<tr>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
</tr>
<tr>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
</tr>
<tr>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
<td><input type="text" class="ui-widget-content"/></td>
</tr>
</table>
</body>
</html>