<ul class="menu">
<li>
<a href="#" class="parrent">item 1</a>
<ul>
<li>submenu item 1</li>
<li>submenu item 1</li>
</ul>
</li>
<li>
<a href="#" class="parrent">item 2</a>
<ul>
<li>submenu item 2</li>
<li>submenu item 2</li>
</ul>
</li>
<li>
<a href="#" class="parrent">item 3</a>
<ul>
<li>submenu item 3</li>
<li>submenu item 3</li>
</ul>
</li>
</ul>
Ну и JS:$(function () {
var links = $('.menu a.parrent');
links.click(function (e) {
links.not(this).siblings('ul').slideUp(300);
$(this).siblings('ul').slideToggle(300);
});
});
Пример в песочнице foreach ($_FILES["files"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["files"]["tmp_name"][$key];
${'file_'.$key} = $_FILES["files"]["name"][$key];
move_uploaded_file($tmp_name, "uploads/$name");
}
}
$(this).height('auto');
$view->result[0]->_field_data['nid']['entity']->event_calendar_status[LANGUAGE_NONE][0]['tid'];
.mobile .flash,
.tablet .flash {
display: none;
}