怎样在客户端完DropdownList选择0的时候之显示TextBox,选择1的时候之显示TextBox1
解决方案 »
- 给大家看一个网站,要怎么样才能实现这个添加的功能,再把添加的内容显示出来?
- 如何让reapter内容在网页上显示出来
- jQuery插件控制ASP.NET控件
- 客户段定时请求服务器数据的小程序
- 征稿,
- duwamish7里面的业务外观层跟web层有什么区别啊,
- 急!!!虚拟目录中如何获得session?
- 请问“天气预报”有没有什么借口或服务可以获取,要不要收费?
- 我想在DropDownList空键中,下拉显示的数据为图片,怎么实现?------------------------------------------------
- 这两段东西是什么意思??
- sql 关于日期范围条件
- 订单输入使用什么控件
<select onchange="FF3(this);"><option selected>请选择</option>
<option value="0">0</option>
<option value="1">1</option></select>
<input type="text" id="txt0" style="DISPLAY:none"/>
<input type="text" id="txt1" style="DISPLAY:none"/>function FF3(c) { document.getElementById('txt0').style.display = 'none';
document.getElementById('txt1').style.display = 'none';
if (c.value == '0') {
document.getElementById('txt0').style.display = '';
}
if (c.value =='1') {
document.getElementById('txt1').style.display = '';
}
}
protected void ddlPost_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddlPost.SelectedValue==0)
{
TextBox1.Visible = true;
}
if (ddlPost.SelectedValue==1)
{
TextBox2.Visible = true;
}
}
{
if(DropdownList1.SelectedItem.Value == "0")
{
TextBox.Visible = true;
TextBox1.Visible = false;
}
else if(DropdownList1.SelectedItem.Value == "1")
{
TextBox.Visible = false;
TextBox1.Visible = true;
}
}