How to get

value using JQuery

后端 未结 2 432
不思量自难忘°
不思量自难忘° 2021-01-12 20:00

How I can get select component value using Jquery or javascript

MyJSF code below


      

        
2条回答
  •  隐瞒了意图╮
    2021-01-12 20:08

    you can pass the this in this function:

    onchange="onCall(this)"
    

    and i am assuming you have defined this onCall function in the global scope, then you can do this:

    onCall(el){
        alert(el.value);
    }
    

提交回复
热议问题