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
Back To Top
Search