开发者

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

开发者 https://www.devze.com 2023-03-23 02:19 出处:网络
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 fil

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

精彩评论

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