调用Javascript函数 [英] Call Javascript Function
本文介绍了调用Javascript函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好专家,
我想在下拉列表的选定索引更改事件中从我的aspx页面调用一些javascript代码
Hello Experts,
I want to call some javascript code from my aspx page on the selected index changed event of drop down list
<asp:dropdownlist id="DropDownList1" runat="server" width="163px" onselectedindexchanged="how to call javascript from here">
</asp:dropdownlist>
问候,
Prashant
Regards,
Prashant
推荐答案
或者,JQuery怎么样? :)
Or, how about a little JQuery? :)
(document).ready(function() {
(document).ready(function() {
("#<%=DropDownList1.ClientID%>").change(function() { //Your code goes here }); });
("#<%=DropDownList1.ClientID%>").change(function() { //Your code goes here }); });
这篇关于调用Javascript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文