Like the title says, when you click the button btnSubmit in this code here:
http://jsfiddle.net/piratescott/stbmfbw8/1/
The function to append the code in the stream div wont run
Button code that wont work:
$(document).ready(function () {
$("#btnSubmit").click(function () {
$("#stream").append("chips");
});
});
Button being generated by JQuery beforehand (take note of input id="btnSubit" at the end, button is actually there just not working, works find if not generated by jquery)
$username = json.name;
$("#stream-buttons span").append("<li id=\"streamers\"><img height=\"100px\" width=\"100px\" src=\"" + json.logo + "\"/><a href=\"" + json.url + "\"><p>" + json.display_name + "</p></a><p>Online</p><input id = \"btnSubmit\" type=\"submit\" value=\"" + $username + "\"/></li>");