0

I might be on the right track but can't figure out how to define name

https://code.sololearn.com/WhSLrYt1L705/?ref=app

10th Aug 2023, 7:44 PM
Travis Beard
Travis Beard - avatar
5 Antworten
+ 5
I've noticed here, you have: name = document.getElementById("name") amount = document.getElementById("amount") terrain = document.getElementById("terrain") But none of your html elements have an id="..."
10th Aug 2023, 7:52 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Thank you
10th Aug 2023, 8:14 PM
Travis Beard
Travis Beard - avatar
+ 1
You need to take the values from the input fields and then put them into your function. Something like this might help you: https://stackoverflow.com/questions/43677564/passing-input-from-html-to-JUMP_LINK__&&__python__&&__JUMP_LINK-and-back
11th Aug 2023, 7:48 AM
Ausgrindtube
Ausgrindtube - avatar
0
my onclick func is no good now. i may need args or kws or something so i have a positional argument until i get a positional arguement but idk anything about them and im tappin out for the day. any and all help is appreciated
10th Aug 2023, 8:26 PM
Travis Beard
Travis Beard - avatar
0
hey its trying to connect. not sure whats what or where to paste what but looks like progress to me, thanks. python anywhere .com gave me code to slap in im assuming this code? i did. also not really sure what to put on that server i got for free. all i put on there was an identical copy of the code.
11th Aug 2023, 7:37 PM
Travis Beard
Travis Beard - avatar