Hi,
I have two div's. I want to show one and hide the other based on a condition. My problem is that jquery is only assigning the first div, I can tell this by looking at the web developer output to confirm, why?
if(!fd.getActiveXInstalled()) {
$(".divActiveXdownloadButton").hide();
$(".divActiveXNodownloadButton").show();
} else {
$(".divActiveXdownloadButton").show();
$(".divActiveXNodownloadButton").hide();
}
And markup:
<div>
<div class="divActiveXdownloadButton" style="display:none;">
<asp:ImageButton ID="BtnDownload" runat="server" ></asp:ImageButton>
</div>
<div class="divActiveXNodownloadButton" style="display:none;">
<asp:ImageButton ID="BtnReturn" runat="server"></asp:ImageButton>
</div>
</div>
Thank you, James