skip to Main Content

Send AJAX data to Node.js – Jquery ajax

Unable to send data to Node.js from my HTML/AJAX, I have variable selectValue which I want to send to my Node server. While making use of data: { selectValue: selectValue} does not help. index.html <script type="text/javascript"> $(document).ready(function(){ var selectElement =…

VIEW QUESTION

Passing the serialized data to the controller in MVC through AJAX – Jquery ajax

I have a view : @{ ViewBag.Title = "Home Page"; } <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link href="~/Content/themes/base/jquery-ui.css" rel="stylesheet" /> <link href="~/Scripts/datatable/DataTables-1.10.20/css/dataTables.jqueryui.min.css" rel="stylesheet" /> @section Scripts{ <script src="~/Scripts/datatable/DataTables-1.10.20/js/jquery.dataTables.min.js"></script> <script src="~/Scripts/datatable/DataTables-1.10.20/js/dataTables.jqueryui.min.js"></script> <script> $(document).ready(function () { $("#contenttable").DataTable({ }); $("#submitdata").click(function () { var datatabledata…

VIEW QUESTION
Back To Top
Search