js在asp.net中获取下拉框的值与对应的Id如何写(用js写方法)
protectedvoidButton2_Click(objectsender,EventArgse){//用js如何写//lblJob是label控件ddlJob是Dr...
protected void Button2_Click(object sender, EventArgs e)
{
//用js如何写
//lblJob是label控件 ddlJob是DropDownList下拉框控件
this.lblJob.Text = ddlJob.SelectedValue.ToString();
} 展开
{
//用js如何写
//lblJob是label控件 ddlJob是DropDownList下拉框控件
this.lblJob.Text = ddlJob.SelectedValue.ToString();
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询