Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
thenoob217yBecause as I already checked on several sites I did everything right 😅 can't find my mistake
-
thenoob217yCurrently it shows nothing on the second row ... It should show 251, XX €
It worked when I had it directly entered in my html file with script tags but since I tried to have it externally it doesn't work anymore -
plusgut60377y@thenoob can you put your code somewhere. Reading code on photos isn't really useful.
-
thenoob217yWhere would you prefer it ? I'm new to this so I haven't got any clue how or where to share code 😅
-
thenoob217yAlright. I will upload it on github the first thing in the morning . I managed to get it work with buttons but not automatically ... Very strange somehow. Thank you for your help, will post the github link in few hours
-
Not really sure since I'm viewing the screenshots on mobile. It seems you are defining the function but you are not calling it anywhere. Either add an event listener on page load that calls the netto function (your best choice) or simply call it immediately by adding a pair of parenthesis after the definition like: (function netto(){/*code*/})()
Can anyone here help me with a super simple JavaScript code which I want to include externally with html?
random