Answer the question
In order to leave comments, you need to log in
Why doesn't JavaScript work in Cordova?
Good day. Created an empty Cordova project and included jQuery Mobile. When I just write document.getElementById('area').innerHTML = "Hello"; it shows Hello in the emulator, but when I want to do it in a function so that this message is displayed when the button is pressed, nothing happens.
function show() {
document.getElementById('area').innerHTML = "Hello";
}
<input type="button" value="Показать" onclick="show()" />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question