【发布时间】:2017-01-09 02:37:23
【问题描述】:
在按钮上单击会生成详细信息页面。 单击它时我有一个href链接,它在页面中导航。 但是在页面加载时应该只有按钮(点击它会生成主页),但href链接也出现了。
我想在页面加载时应该只有一个按钮,点击它应该会出现href链接。 单击另一个按钮时应该消失。
脚本:
$(document).ready(function () {
$('#priorityC').hide();
$('#perC').hide();
});
$('#btnAnalyse').click(function () {
$('#priorityC').show();
$('#perC').show();
});
这是按钮:
<asp:ImageButton ID="btnAnalyse" runat="server" OnClick="btnAnalyse_Click"/>
这是我只想在单击上述按钮时显示的 href 链接:
<a href="Homepage.aspx#perC">Hourly Detailed Priority Representation</a>
<a name="priorityPer">
<div id="perC" class="center">
<asp:Label ID="lblDPTC" runat="server" Text="Detailed Percentage representation of Ticket Count" Visible="false"></asp:Label>
</div>
</a>
它在页面加载时隐藏,但在按钮点击时不显示。
【问题讨论】:
-
请分享您尝试了什么?
-
请分享您的代码
-
@SamudralaRamu 看看