title: Can I change the max attribute of an input tag using a function?
body: <p>I'm coming in from this post: <a href="https://stackoverflow.com/questions/20813786/input-max-equal-to-javascript-variable">Input max equal to javascript variable</a> but it did not quite solve my issue. I'm currently working with Google's HTML Service and I need help with the case below...</p>
  
  <p>If I have a <code>Code.gs</code> function like this: <code>var myVar = function() { var x=2; return (x+x); }</code></p>
  
  <p>... and then, inside my HTML file, I have an input tag written like this: <code>&lt;input id... max=myVar&gt;</code></p>
  
  <p>Would setting the <code>max</code> attribute like this: <code>.setAttribute("max", myVar)</code> successfully change that value based on the value returned from my custom function? Initial attempts are failing.</p>