У меня есть таблица вроде этого ..Jquery набор ширина стола на кнопку мыши
<table id="content" style ="border:none>
<tr>
<td>
<table id="content_medium" style ="width:100%">
<tr class="grid_heading">
<th class="student">Students</th>
<th class="year">Year</th>
<th class="group">Roll Group</th>
<th class="Type">Session</th>
</tr>
</table>
</td>
</tr>
</table>
Как я могу изменить ширину таблицы с помощью JQuery .. У меня есть кнопка, которая при нажатии на Добавлю, ширину 100% и следует удалить атрибут ширины при щелчке в следующий раз.
Нравится?
function openpartialView() {
$(".content").addcss("width","100%");
}
function closepartialView() {
$(".content").removecss("width", "100%");
}