skip to Main Content

jQuery : Select all Select Element with value selected only to send in ajax – Jquery ajax

I'm trying to Improve my ajax request speed so my ajax code is like this $.ajax({ url:url_option, type:'POST', dataType:'json', data:$('#product input[type='text'], #product input[type='number'], #product input[type='hidden'], #product input[type='radio']:checked, #product input[type='checkbox'], #product select, #product textarea, #product input[name='quantity']'), success:function(json){ }, }); Because I…

VIEW QUESTION

Get data by Id using AJAX | JSON ASP.NET – Jquery ajax

i have this web service methode List<object[]> List1 = new List<object[]>(); [WebMethod(EnableSession = true)] [System.Web.Script.Services.ScriptMethod(UseHttpGet = true, ResponseFormat = System.Web.Script.Services.ResponseFormat.Json)] public List<object[]> GetData(int ID) { var team = db.TEST.WHERE(a => a.id == ID).ToList(); List1.Add(new object[] { team }); return teamList;…

VIEW QUESTION

ASP.NET Core Ajax returns null – Jquery ajax

function addTeam() { var teamName = $("teamField").val(); $.ajax({ type: "POST", url: 'AddTeam', contentType: "application/json;", data: { team: "HELLO PLEASE WORK" }, success: function () { alert("URA"); }, error: function (error) { alert(error); } }); }; [HttpPost] public JsonResult AddTeam(string team)…

VIEW QUESTION
Back To Top
Search