Thursday, 20 June 2019

Submit from data using ajax call in mvc jquery





<script type="text/javascript">
        $(function () {
            ////////// FrmSchedule from id
            $('#FrmSchedule').submit(function () {
                if ($(this).valid()) {
                    $.ajax({
                        url: this.action,
                        type: this.method,
                        data: $(this).serialize(),
                        success: function (result) {
                            $('#loadControlID').html(result);
                        }
                    });
                }
                return false;
            });
        });

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...