Insert a text into a textbox and simulate click on the button in Bot Framework's Web Chat
问题 Fiddle here: https://jsfiddle.net/chpaeeL9/1/ Microsoft Bot Framework has a webchat module that allows you to talk to your bot. When the user clicks the Say Hi button, I want to place some text into the webchat's textbox, and click the Send button inside the webchat using JavaScript. Sounds like something too easy, but it wasn't. Here's the code that I currently have, and it doesn't work: the click event somehow is not triggered. $('#sayhibutton').click(function() { $('.wc-console').addClass(