Javascript-форум (https://javascript.ru/forum/)
-   Общие вопросы Javascript (https://javascript.ru/forum/misc/)
-   -   Скрыть колонку в таблице (https://javascript.ru/forum/misc/60152-skryt-kolonku-v-tablice.html)

Castromen 14.12.2015 09:55

Скрыть колонку в таблице
 
Доброе утро.

Подскажите пожалуйста как скрыть определенную колонку в таблице.
Спасибо.

<table onmousedown="return OnTableMouseDown(event);" summary="Komanda" xmlns:o="urn:schemas-microsoft-com:office:office" o:webquerysourcehref="&amp;XMLDATA=1&amp;RowLimit=0&amp;View=%7B6D1AF87B%2D33BB%2D4217%2D8846%2D6F78BC48759C%7D" border="0" cellspacing="0" dir="none" onmouseover="EnsureSelectionHandler(event,this,15)" cellpadding="1" id="{9EBED5C7-6ACE-43E6-AE3E-E84B6EBCB54B}-{6D1AF87B-33BB-4217-8846-6F78BC48759C}" class="ms-listviewtable" handledeleteinit="true">
<thead id="js-listviewthead-WPQ3">
<tr valign="top" class="ms-viewheadertr ms-vhltr">
<th class="ms-vh-icon" scope="col" title=""><span class="ms-addcolumn-span"> </span></th>
</tr>
</thead>
</table>



<script type="text/javascript">
$(document).ready(function () {
$("#{9EBED5C7-6ACE-43E6-AE3E-E84B6EBCB54B}-{6D1AF87B-33BB-4217-8846-6F78BC48759C} thead th:nth-child("+num+")").hide();
});
</script>

рони 14.12.2015 10:11

Castromen,
:blink:
$("[id='{9EBED5C7-6ACE-43E6-AE3E-E84B6EBCB54B}-{6D1AF87B-33BB-4217-8846-6F78BC48759C}'] thead th:nth-child(1)").hide();


Часовой пояс GMT +3, время: 06:05.