HTMLInputElement has no method 'val'

前端 未结 5 923
走了就别回头了
走了就别回头了 2021-02-05 02:28

I\'m looping through cells in a table row. each cell has a text box in it, and I want to take the value of the text box and push it onto an array.

function dothi         


        
5条回答
  •  逝去的感伤
    2021-02-05 02:40

    What I don't understand, is why none of the suggested syntaxes on this or other questions similar to this seem to work for me. I had to do trial and error and eventually had to use:

    MySelectElement.value = x;

    It also didn't help that the Visual Studio Intellisense suggestions offer a whole other range of unworking method names, such as ValueOf().

提交回复
热议问题