如何在按钮单击时隐藏/显示扩展标签
问题描述:
单击按钮后,它会显示一些扩展标签,并且与单击同一按钮时相同,扩展标签是隐藏/不可见的.
建议如何设计.
Once we click the button then it show the some extended labels and the same as we click the same button the extended lable are hide/Invisable.
Suggest how to design.
答
在下面的脚本中使用
在buttonClientClick
上
use below script
on buttonClientClick
document.getElementById('<%=yourlabelID.ClientID%>').style.display=document.getElementById('<%=yourlabelID.ClientID%>').style.display==''?'none':'';
你可以这样写...
Hi,
You can write something like this...
<html>>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
(功能(){
(document).ready(function(){