#Getting user input into the renderer

4 messages · Page 1 of 1 (latest)

patent sky
#

I have several inputs in my html file:


  <input type="number" id="yAxisMax" placeholder="Max Value" required /><br>```

And I want to use these inputs in the renderer.js file: 

``` function updateChart(){
  yAxis: {
      min: document.getElementById('yAxisMin').innerText,
      max: document.getElementById('yAxisMax').innerText,
    },
}```

But when I run this code I do not get any value from the dom
sturdy sparrow
#

It's not electron related

#

And to get input value use value not innerText

#

You could have found that easily on Google :/