Serialize from Tag at run time
<p>I have question regarding Jquery serialize.</p>

<p>I need to post form with serialize object.What i am doing is, adding form tag at run time and then adding that HTML in a hidden div in same DOM.</p>

<p>Please have a look in following code.</p>

<pre><code>function SetUrl(id, e) {
var val = $("#status" + id).val();
var notes = $("#notes" + id).val();

var verifiedproductid = $("#verifiedproductid" + id).val();
$(".ddlCat_" + id).each(function (index) {
alert(index);
$(this).attr("name", "ProductCategoriesList[" + id + "]");
});

var docFrm = $(e).parents("tr:first").html();

docFrm = "&lt;from id='frmVerify" + id + "' &gt;&lt;table&gt;&lt;tr&gt;" + docFrm + "&lt;/tr&gt;&lt;/table&gt;&lt;/form&gt;";
$("#divRunTime").html(docFrm);


//Here is the run time form thats i want to serialize and post,,That not working
var frm12 = $("#frmVerify" + id).serialize();


var url = "/Admin/Verifiedproducts";
$.post(url, frm12 , function (data) {
alert(data);
});
return false;
}
</code></pre>

<p>Any help will be appreciated.
Thanks </p>
