Since I was told my post is a re-post, which it is not, let me re-explain:
I have a div 'box'. In this 'box', there is a 'contentbox' div. In that 'contentbox' there is, by default, a form and a button 'button1'.
When 'button1' is clicked, a new form 'questions' and a new button 'button2' is loaded into 'contentbox'.
'button2' will not click and load more html.
When trying to follow the link that I was apparently "reposting" I changed my JQuery to...
$("#button2").on('click', "#contentholder, loadQuestions());
I want my dynamically loaded button to be able to dynamically create other dynamic content. That way, all processes can occur within my 'contentbox'.
If you still believe I need to go back and look at that post, please be more specific on what I am actually doing wrong. It takes a long time to create these posts, and to simply tell me "repost" does not get me anywhere.
Thank you
JFiddle Demo(With html): http://jsfiddle.net/u1hfu3yc/1/
$(document).ready(function () {
$("#button1").click(loadUserNameTable);
$("#button2").click(loadQuestions);
$("#button3").click(loadPasswordChange);
$("button4").click(submit);
});
function loadUserNameTable() {
$("#contentholder").load("nametable.html");
}
function loadQuestions() {
$("#contentholder").load("questions.html");
}
function loadPasswordChanger() {
$("#contentholder").load("passwordchange.html");
}