hi naveensanagasetti,
I have a dropdown list and had binded the values from database.
public partial class WebForm4 : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("Data Source=CIS-MAS4;Initial Catalog=Emp;User ID=sa;Password=Caliber@1");
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
binddata();
}
}
protected void binddata()
{
con.Open();
SqlCommand cmd = new SqlCommand("select Name from Employee ",con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
ddlemp.DataSource = ds;
ddlemp.DataTextField = "Name";
ddlemp.DataBind();
con.Close();
}
}
Now i have a value in the dropdownlist "Other". When i click the "other", it should enable a textbox and when i type the value in the textbox,it should bind back to the dropdown list.
How to do using Jquery or javascript ?