Так у меня есть JQuery множественного выбора выпадающем DropDownBox'е (Флажки внутри капли вниз)
Я пытался реализовать this так, что он будет выглядеть меню, которое Выдвижной на наведите указатель мыши на предоставленный div. так вот мой кодДисплей: Нет уничтожает рендеринг других JQuery объектов
ASP код:
<div class="box">
SORT?
<div class="hiddencolumn" style="position: absolute; background-color:Black; height:auto;">
<asp:DropDownList ID="CompanyDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="RegionDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="AreaDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="BranchDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="StorageGroupDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="SORDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="TicketDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="KaratDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="PORIGINDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="StatusDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:DropDownList ID="ClassificationsDropDownList" Class="s10" runat="server" AppendDataBoundItems="True">
</asp:DropDownList>
<br />
<asp:Button ID="SortButton" runat="server" Text="Sort" OnClick="SortButton_Click" />
</div>
</div>
JavaScript для коробки ниспадающего контрольного списка и парить FadeIn
<script language="javascript" type="text/javascript">
$(document).ready(function()
{
$(".s10").dropdownchecklist({ firstItemChecksAll: true,forceMultiple: true, onComplete: function(selector) {
var values = "";
for(i=0; i < selector.options.length; i++) {
if (selector.options[i].selected && (selector.options[i].value != "")) {
if (values != "") values += ";";
values += selector.options[i].value;
}
}
alert(values);
} });
$(function(){
$(".box").hover(function(){
$(this).find(".hiddencolumn").fadeIn();
}
,function(){
$(this).find(".hiddencolumn").fadeOut();
}
);
});
});
</script>
Css
.hiddencolumn
{
display: none;
}
когда я удалить скрытый класс колонки на (например, удалить display:none;
)
Rendering правильно так:
проблема, когда я добавил hiddenColumn
класса или добавлены display:none
на DIV это то, что делает
Любая помощь? или работать? любой гид был бы очень оценен.
Используйте 'visibility: hidden' вместо' display: none', чтобы сохранить пространство, выделенное элементу в макете. – Anthony
@ Энтони, если я использую 'видимость: скрытый', jquery для' fadein() 'не работает, поэтому в случае этого, хотя я наводил указатель мыши на div, он не будет отображаться так, как я хотел, если вы можете дайте альтернативный jquery, пожалуйста, отправьте его как ответ спасибо :) – user2705620