Since you updated your question, there is an updated answer here. Check jsfiddle work: https://jsfiddle.net/r0sk7vtf/
you need to handle the submit button click event and then call the service
while the api table is understood as without quotes, it does not work through sheetrock.js, so you need to use A like '9999%'
in your query
Excerpt:
var mySpreadsheet = 'https://docs.google.com/spreadsheets/d/1_1elTo5zH1ew6KPYwoWtixX9hzFc8oxdRy5A0LWFkwg/edit#gid=0'; var button = $('#btn'), elem = $('#textbox_id') button.on('click', function(e){ var v = elem.val(); $('#switch-hitters').sheetrock({ url: mySpreadsheet, query: "select A,B,C,D,E where A like '" + v + "%'" }); })
source share