+ 5

My code doesn't RUN here

On my web browser on PC my code runs sometimes with some errors but run. Here not. It's a BDI calculator. Someone can help me? Thanks! :) https://code.sololearn.com/Wi6buTr1pPeF/?ref=app

24th Dec 2017, 9:56 PM
Luiz Antunes
Luiz Antunes - avatar
4 Respuestas
+ 10
1st it calculates the value shows it below, then submits it because it's a *form* element. which is used for submitting data to the server when you click the submit. Use a different strategy to do it (search how to on the internet). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form
25th Dec 2017, 3:19 AM
Lord Krishna
Lord Krishna - avatar
+ 6
Lord, here appears a white screen when I click on button. My Android is the latest version. I don't know how to solve it. 😢
25th Dec 2017, 2:55 AM
Luiz Antunes
Luiz Antunes - avatar
+ 6
Thanks Lord Krishna
25th Dec 2017, 3:34 AM
Luiz Antunes
Luiz Antunes - avatar
+ 6
I solved my problem. I changed the type of submit to type button. Now works fine. 😊👌
25th Dec 2017, 5:10 PM
Luiz Antunes
Luiz Antunes - avatar