使用Javascript可见的文本框为true [英] TextBox visible true using Javascript
本文介绍了使用Javascript可见的文本框为true的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..全部
当
Hi..All
i have need to TextBox and Lable visible true using Javascript when
rbtlstFees.Items[1].Selected
为true时,我需要使用Javascript使TextBox和Lable可见为true.并且我无需分页回发事件.
下面的代码听到,
is true.and i have no need to page Postback event.
Below Code Hear,
<asp:RadioButtonList ID="rbtlstFees" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Selected="True" Text="Free" Value="0"></asp:ListItem>
<asp:ListItem Text="Paid" Value="1"></asp:ListItem>
</asp:RadioButtonList>
感谢Advans....
Thanks in Advans....
推荐答案
这是使用jquery的简单解决方案:
Hi,
Here is simple solution using jquery:
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
( function (){
(document).ready(function(){
(' input [name = MyRadio]').click(函数(){ 如果(
('input[name=MyRadio]').click(function() { if(
这篇关于使用Javascript可见的文本框为true的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文