Select "Value" と Table Id のスペースを削除します。また、ID で非表示にする代わりに、項目テーブルに関連付けられたクラスを非表示にします
JQuery
jQuery(document).ready(function() {
$('#tablets').change(function() {
$('.stock-list').hide(); // Hide all Item Tables
$('#' + $(this).val()).show();
});
});
HTML を選択
<select id="tablets">
<option value="LeapPad2Explorer">LeapPad 2 Explorer</option>
<option value="LeapPadExplorer">LeapPad Explorer</option>
<option value="VTechInnoTab2">VTech InnoTab 2</option>
<option value="HelloKitty7inchTablet">Hello Kitty 7 inch Tablet</option>
<option value="KurioKidsTabletwithAndroid4.0">Kurio Kids Tablet with Android 4.0</option>
<option value="Tabeo7inchKidsTablet">Tabeo 7 inch Kids Tablet</option>
</select>
テーブル HTML
<table class="stock-list tablesorter" id="LeapPad2Explorer" border="0" cellpadding="0" cellspacing="0" width="100%">
///Table Content
</table>
<table class="stock-list tablesorter" id="VTechInnoTab2" border="0" cellpadding="0" cellspacing="0" width="100%">
///Table Content
</table>