I have the following code:
<div class="contentContainer">
<div class="bild" id="bildDiv">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<div class="menubox" id="menuboxID">
<table border="0" cellpadding="0" cellspacing="0" class="menutable">
<tr>
<td>
<asp:ImageButton ID="ImageButton1" CssClass="menuitem" ImageUrl="~/Images/Icons_Home.png"
OnClick="HomeClick" runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton2" CssClass="menuitem" data-ftrans="slide" ImageUrl="~/Images/Icons_down.png"
OnClick="DownClick" runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton3" CssClass="menuitem" ImageUrl="~/Images/Icons_up.png"
runat="server" OnClick="UpClick" />
</td>
<td>
<asp:ImageButton ID="ImageButton4" CssClass="menuitem" ImageUrl="~/Images/Icons_Video_alternative.png"
runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton5" CssClass="menuitem" ImageUrl="~/Images/Icons_Mail.png"
runat="server" OnClick="MailClick" />
</td>
</tr>
</table>
</div>
</div>
<script>
$("#bildDiv").click(function () {
$("#menuboxID").toggleClass("fadein");
});
$('body').removeClass('ui-loading');
</script>
So when I click on my #bildDiv, #menuboxID will be faded in! But now I have some textboxes in my #bildDiv! When I click on any textbox in order to write sth, my Menu fades in! But I don't want it to...it should only fade in if I click directly on my div! Solutions?