如何在按钮单击时隐藏/显示扩展标签 [英] how to hide/show extended label on button click
本文介绍了如何在按钮单击时隐藏/显示扩展标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
单击按钮后,它会显示一些扩展标签,并且与单击同一按钮时相同,扩展标签是隐藏/不可见的.
建议如何设计.
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(){
这篇关于如何在按钮单击时隐藏/显示扩展标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文