php – repetitive jquery functions

I am using standard jquery ajax to update the values ​​in the database and reflect the result in an output. This repetition seems to be a bad practice and I do not know enough about Jquery to consolidate this correctly.

Jquery

                                $ ("# vendorticket"). change (function () {// Input / Select tag
var output = ("# vendorticket-result");
$ .ajax ({
url: & # 39; includes / view.func.php & # 39 ;, // Updating the database based on the specified row, column, and value ID
type: & # 39; post & # 39 ;,
data: {
vendorticket: $ (this) .val (),
column: & # 39; vendorticket & # 39 ;,
id: 15
}
success: function (result) {
$ (output) .html (result); // Exit interval either "Saved" or "Save error"
}
});
});
In
// Rinse and repeat ...

$ ("# priority") change (function () {
var output = ("# priority-result");
$ .ajax ({
url: & # 39; includes / view.func.php & # 39 ;,
type: & # 39; post & # 39 ;,
data: {
priority: $ (this) .val (),
column: & # 39; priority & # 39 ;,
id: 15
}
success: function (result) {
$ (output) .html (result);
}
});
});
In
$ ("# assigned to"). change (function () {
var output = ("# assigned to result");
$ .ajax ({
url: & # 39; includes / view.func.php & # 39 ;,
type: & # 39; post & # 39 ;,
data: {
assigned to: $ (this) .val (),
column: & # 39; assigned to & # 39 ;,
id: 15 //
}
success: function (result) {
$ (output) .html (result);
}
});
});
In
});

HTML