byki...@gmail.com
unread,Jan 25, 2017, 9:45:14 AM1/25/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to select2
if add item no problem but i want remove item not change selected values
my juery code
var foo = [];
$("#serviceId").change(function () {
$('#serviceId :selected').each(function (i, selected) {
foo[i] = $(selected).text();
});
jQuery.ajax({
type: "POST",
url: "@Url.Action("CalculatePrice", "Service")",
data: { values: foo },
dataType: "json",
success: function (result) {
xx = result;
$("#cost").text("Size özel toplam fiyatımız: " + result + " ₺");
}
});
how can i fix it?