J
Julius Fenata
Dear all,
I have created client-side scripting to trigger event onChange from
code-behind, like this:
DropDownList1.Attributes["onChange"] = "GenerateArticleID()";
At the script on Windows Form, I added this function to have the value of
DropDownList1
<script language="JavaScript">
function GenerateArticleID()
{
javascript:alert(document.getElementById("<%= DropDownList1.ClientID
%>").innerText)
}
</script>
Instead of having only one result selected-value from this DropDownList, the
pop-up messages showing entire data that contained on this DropDownList, how
to have the selected value/item only on onChange event with this client-side
script?
Thx,
Julius F
I have created client-side scripting to trigger event onChange from
code-behind, like this:
DropDownList1.Attributes["onChange"] = "GenerateArticleID()";
At the script on Windows Form, I added this function to have the value of
DropDownList1
<script language="JavaScript">
function GenerateArticleID()
{
javascript:alert(document.getElementById("<%= DropDownList1.ClientID
%>").innerText)
}
</script>
Instead of having only one result selected-value from this DropDownList, the
pop-up messages showing entire data that contained on this DropDownList, how
to have the selected value/item only on onChange event with this client-side
script?
Thx,
Julius F