Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SaveGroup() {
- var groupId = $('#GroupId').val();
- var status = $('#Status').val();
- var form = $("#settingform-country");
- if (form.valid()) {
- $.ajax({
- url: '@Url.Action("CountryCreate", "Setting")',
- dataType: "json",
- data: form.serialize(),
- type:"post",
- success: function (result) {
- if (result && result.success) {
- $("#countryModal").modal("hide")
- location.reload(true);
- } else {
- $('#settingform-country [data-valmsg-for="CountryCode"]').addClass("field-validation-valid")
- $('#settingform-country [data-valmsg-for="CountryCode"]').addClass("field-validation-error")
- $('#settingform-country [data-valmsg-for="CountryCode"]').text(result.msg)
- }
- }
- });
- }
- }\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement