Sorry for the vague question... didn't give nearly enough info. Understand I need javascript, the main issue is what the syntax is
In HTML, I am trying to create conditional logic that checks if a button in a modal has been clicked, once that button has been clicked, I want to "show" a new button to the user
My issue is the syntax creating the new button using javascript. I have the onclick attribute of the triggering button set to a new function called "myFunction()" that I will place javascript in, but not sure syntactically how to generate a new button
Would something like this create the button?:
function myFunction() {
var element = document.createElement("getInfo");
}
From here I need to assign a name, style, etc. to this button (hopefully using the same bootstrap styling the other buttons have on my webpage)