且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在JSP Dropdown中使用JQuery变量

更新时间:2023-01-16 17:10:36

{result.rows} var = st >
< 选项 value = 1 > < c:out value =
{result.rows}" var="st"> <option value="1"><c:out value="


{st.USER_ID} / > < / option >
< / c:forEach >
< / select >
{st.USER_ID}"/></option> </c:forEach> </select>





然后使用以下JQuery将所选值放在文本框中;





Then used the following JQuery to place the selected value in the text box;

var main = function() {


' #UserIDs')。on(' change',function(){
var selUser =
('#UserIDs').on('change',function(){ var selUser =