admin管理员组文章数量:1294383
I have a showCustomersList()
javascript function in FunctionBag.js
now I want to call that function in onchange event of the springs <form:select onchange="">
tag in a jsp file.
How can I do that?
I have a showCustomersList()
javascript function in FunctionBag.js
now I want to call that function in onchange event of the springs <form:select onchange="">
tag in a jsp file.
How can I do that?
Share Improve this question edited Jul 27, 2011 at 15:58 cfeduke 23.2k10 gold badges63 silver badges65 bronze badges asked Jul 27, 2011 at 15:48 aman.nepidaman.nepid 3,0549 gold badges43 silver badges48 bronze badges 1- Are you using jQuery? I suppose jQuery .change() will do it just fine – Boris Treukhov Commented Jul 27, 2011 at 15:55
2 Answers
Reset to default 4This is how we do it in 2011. use Jquery
$('#yourFormId select').change(function() {
showCustomersList();
});
This should work
<form:select onchange="javascript:showCustomersList();">
本文标签: How to call javascript function in onchange event with spring form tagStack Overflow
版权声明:本文标题:How to call javascript function in onchange event with spring form tag? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741592634a2387217.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论