开发者

How to call javascript function in onchange event with spring form tag?

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?


This is how we do it in 2011. use Jquery

$('#yourFormId select').change(function() {
    showCustomersList();
});


This should work

<form:select onchange="javascript:showCustomersList();">

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜