Skip to content

Instantly share code, notes, and snippets.

@tarekdj
Created Jul 14, 2019
Embed
What would you like to do?
function setKeywordText(text) {
var el = document.getElementById("new_comment_field");
el.value = text;
var evt = document.createEvent("Events");
evt.initEvent("change", true, true);
el.dispatchEvent(evt);
}
setKeywordText("add your content here...");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment