I have a textbox,
<input type="text" id="hoverChange" runat="server" onchange="hoverAction"/>
I have the below method defined in the server side code,
protected void hoverAction(object sender, EventArgs e)
{
string sectionName=hoverChange.Value;
if (sectionName != "") sectionHoverUserControl.displayHoverContent(sectionName);
}
I need the above method to be executed when I programatically set some value to the textbox. I tried to do the below, But neither fired the onchange event,
document.getElementById('<%= hoverChange.ClientID %>').value = "some_text";
or
$('#<%= hoverChange.ClientID %>').val("some_text");
I would appreciate your help! Thanks, Harish