ID sample1 と sample2 の 2 つのテーブルがあります。sample1 には が含まれ<th class="header">
、 sample2 には が含まれます<td class="desc">
。私がやりたいのは<th>
、sample1 でサイズを変更するときに<td>
、同じ同期で自動的に sample2 でサイズを変更することだけです。jQueryresizeable()
メソッドを使用していますが、取得できません。
助けてください。
参照用のコードは次のとおりです。
<script type="text/javascript" charset="utf-8">
$(function() {
$("#sample1 .header").resizable();
$("#sample2 .desc").resizable();
});
</script>
</head>
<body>
<div class="center" >
<table id="sample1" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th class="header">header</th><th class="header">header</th>
</tr>
</table>
<table id="sample2" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="desc">cell</td>
<td class="desc">cell</td>
</tr>
<tr>
<td class="desc">cell</td>
<td class="desc">cell</td>
</tr>
<tr>
<td class="desc">cell</td>
<td class="desc">cell</td>
</tr>
</table>
</div>
</body>
</html>