14.3: Dynamic Text (contenteditable attribute) - Hamilton Lottery Simulator with p5.js
In this video, I look at how you can make the content of a written webpage dynamic. The "contenteditable" attribute is used to make a number editable by a user. The "input" event is used to show how other values on the page can change as the user edits the page.
Source code: https://github.com/shiffman/hamilton-lottery-simulator
website: http://shiffman.github.io/hamilton-lottery-simulator/
Contact: https://twitter.com/shiffman
Learn JavaScript basics:
https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
Learn HTML / CSS basics:
https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bI1SlcCRfLH79HZrFAtBvX
Working with Data / APIs:
https://www.youtube.com/playlist?list=PLRqwX-V7Uu6a-SQiI4RtIwuOrLJGnel0r
Help us caption & translate this video!
http://amara.org/v/QbtB/
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct