Getting blank screen after running Google web app script

前端 未结 1 1927
借酒劲吻你
借酒劲吻你 2021-01-27 06:15

I am working on a check-in app though Google Sheets and want to make a search function that that takes a sport name as input in an HTML form and then returns information about t

1条回答
  •  攒了一身酷
    2021-01-27 06:40

    JQuery id selectors must be prefixed with # so to grab the value from the the 'sport-name' input you'll need to select it using

    var sportInput = $('#sport-name').val();
    

    Additionally, as Robin comments above, if you want to use the JQuery library you'll need to load it, the code you've shown indicates you might not have done this?

    
    
    
    

    Although if this were the case you'd probably be seeing a '$ is not defined' error straight away.

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