Skip to content

Values don't pass to the controller via Ajax #232

@kayarsefer

Description

@kayarsefer

Hi,
I use jquery ajax to send form values to controller in ASP.net MVC. from and to arrays are sent as null when the form is summited. If I select the objects manually in the select field, they pass to controller. Could you please tell me, what my mistake is?

Here is my ajax code.

$.ajax({
url: $(this).closest('form').attr('action'),
data: $(this).closest('form').serialize(),
type: 'POST',
success: function (result) {
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions