I have several dynamically created elements on a page that I would like to POST content using jQuery to another page. The problem is that the created elements cannot be accessed through jQuery (access to the elements that existed on the page can be obtained using $ (# myElementID). I have seen hundreds of messages using the live () and on () functions to access EVENTS, but not having access to any properties, values, innerHTML, etc. Dynamically created ELEMENTS. Is it just impossible to do with jQuery?
$('#btnParseTable').click(function () {
var tblCustomPattern = $("#tblCustomPattern").innerHTML;
alert(tblCustomPattern);
var postData = { "method": "ParseTable", "tbl": tblCustomPattern };
$.post("tiler.aspx", postData, function (data) {
$("#test").html(data);
});
});
If this is not supported by jQuery, can this be done in JavaScript or is it impossible to send information that is NOT an INPUT element?