We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am following the chatbot tutorials but I am getting this error, ReferenceError: select is not defined.
Here is my code: HTML:
<!DOCTYPE html> Chatbot
say: SUBMIT
reply:
JAVASCRIPT
let num = 37555;
function setup(){ noCanvas(); let button = select('#submit'); let user_input = select('#user_input'); let output = select('#output');
button.mousePressed(chat);
function chat(){
let input = user_input.value();
output.html(input);
console.log ("check");
}
}
Answers
Your "index.html" isn't correct: :-S
P.S.: I had to copy it by selecting Edit on your post btW, b/c it's not showing up! ^#(^
type=
instead ofsrc=
for loading "p5.dom.js"! #-ohttp://Chrome-allow-file-access-from-file.com/
Here's a very minimum "index.html" template: O:-)