1<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
1var table = $('#example').DataTable();
2var column = table.column(0);
3$(column.footer()).html(
4 column.data().reduce(function(a, b) {
5 return a + b;
6 })
7);
1<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
2
1/**
2 * jQuery.deparam - The oposite of jQuery param. Creates an object of query string parameters.
3 *
4 * Credits for the idea and Regex:
5 * http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/
6*/
7(function($){
8 $.deparam = $.deparam || function(uri){
9 if(uri === undefined){
10 uri = window.location.search;
11 }
12 var queryString = {};
13 uri.replace(
14 new RegExp(
15 "([^?=&]+)(=([^&#]*))?", "g"),
16 function($0, $1, $2, $3) { queryString[$1] = $3; }
17 );
18 return queryString;
19 };
20})(jQuery);
1JavaScript is a text-based programming language used both on the client-side
2and server-side that allows you to make web pages interactive.
3Where HTML and CSS are languages that give structure and style to web pages,
4JavaScript gives web pages interactive elements that engage a user.
1<form>
2 <div class="form-group">
3 <label for="exampleInputEmail1">Email address</label>
4 <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">
5 <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
6 </div>
7 <div class="form-group">
8 <label for="exampleInputPassword1">Password</label>
9 <input type="password" class="form-control" id="exampleInputPassword1">
10 </div>
11 <div class="form-group form-check">
12 <input type="checkbox" class="form-check-input" id="exampleCheck1">
13 <label class="form-check-label" for="exampleCheck1">Check me out</label>
14 </div>
15 <button type="submit" class="btn btn-primary">Submit</button>
16</form>