HTML onchange (this.value)

后端 未结 1 772
名媛妹妹
名媛妹妹 2021-02-20 14:59

We found this in our code (we haven\'t written it by our selfs, and we are new to programmng), can anyone explain what this.value means and how you change it?

&l         


        
1条回答
  •  难免孤独
    2021-02-20 15:39

    this.value represents the selected value.

    Example:

    function getComboA(sel) {
        var value = sel.value;  
    }
    
    
    

    The above example gets you the selected value OnChange event.

    0 讨论(0)
提交回复
热议问题