Jquery Validation within Jquery Dialog
<p>I am using Jquery Validation Plugin inside Jquery Dialog, below is my code,</p>

<pre><code>//            //Adding validation
            $(document).ready(function () {
                $('#aspnetForm').validationEngine();

            });

//Dialog`enter code here`
          $('#NewItem').dialog({
                modal: true,
                autoOpen: false,
                draggable: true,
                width: '700px',
                height: 'auto',
                title: "Item Name",
                dialogClass: 'myDialogCSS',
                open: function (type, data) {
                    $(this).parent().appendTo($("#aspnetForm"));
                }
                //                open: function () {
                //                    $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error");


            });


//HTML Page
    &lt;asp:TextBox ID="txtItemName" runat="server" Width="450px" Class="validate[required]" /&gt;
</code></pre>

<p>But validation doesn't fires after clicking  submit button. can anybody give any suggestion.</p>

<p>Thanks</p>
