[Solved] JQuery val(), text() and html() all return an empty String
I have found the solution. The problem didn’t lie in the code itself but in the program-flow. Everytime when I click on submit I reload the index.js so my global var radius got overwritten with its default value again since my page reloaded. Therefore getRadius() has been invoked and actually did overwrite the global val … Read more