Passing HTML input value as a JavaScript Function Parameter

后端 未结 7 1810
别跟我提以往
别跟我提以往 2020-12-13 15:52

I am new to JavaScript, and I\'m trying to figure out how to pass user-inputted values as a parameter to a JavaScript function. Here is my code:

         


        
7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 16:09

    You can get the values with use of ID. But ID should be Unique.

    
    

    Adding 'a' and 'b'

    a:
    b:

提交回复
热议问题