In some countries, google, hosted query might be banned we must want to prevent errors. The following code will check jQuery is loaded or not. It is not loaded than jQuery script will be loaded from our web server.
In this example, I will show you to add a row number dynamically to jQuery datatable.I used jQuery datatable for binding grid, before I was struggled with adding row numbers in the first column to the table. Now I fixed the issue; it is working fine.
In this example I will show you to perform square root for the given numbers using Sqrt math function in jQuery. I stored list of numbers in an array variable and loop each element in the array and perform square root from its value.$.map(). The $.map() method will takes the array and callback method as argument.