jQuery has to wait until the page is ready to find elements on the page.
You tell a function to run when the page is ready with
- $(function(){
- //put your click code here. like clearExtra
- clearExtra()
- })
When using jQuery, you don’t have to code onclick= in the html at all.
JΛ̊KE