jquery - .serialize() not returning values from dynamically generated form -
i'm missing here.
i have form dynamically loading form using jquery .click() pulls in $.post query outputs form specific data .html().
i'm trying serialize data form , it's not giving me anything. doing wrong?
code inserting form:
$(".edit").click(function(){ var mid = $(this).attr("uid"); $.post("inc/menu_mod.php", { page: "edit",menu_id: mid, sender: 'sent'}, function(data){ $('#menu_mod').html(data); }); });
my attempt serialize:
$(".update_menu").live('click', function(){ alert("this fires, know it's working"); var form = $('#menu_form form').serialize(); alert(form); });
thanks in advance!
i suspect selector should var form = $('#menu_form').serialize();
because menu_form
id
of form.
Comments
Post a Comment