javaScript and jQuery

Get query string parameters by javascript

17/12/2015 05:29
function getUrlVars (url) {      var vars = [], hash;      var hashes = url.slice(url.indexOf('?') + 1).split('&');      for(var i = 0; i < hashes.length;...

Javascript function namespaces

16/12/2015 03:51
There is good practice to use namespaces in javascripts to prevent calling incorrect function in case of the same function names in various javascript blocks or files. When using namespaces, we call function from that namespace, so we are sure to call the correct one. We can define functions in...

Select multiple checkboxes by javascript

28/10/2015 10:47
<!DOCTYPE html> <html> <body> <h2>Checkbox list</h2> <input type="hidden" value="1"> <h3>Multi Operation for list items</h3> <input type="button" value ="Select all" onclick="checkAll()"/> <input type="button" value="Deselect all"...

jQuery basics

19/01/2013 03:01
Include jQuery online (or use your web application path) in <header> tag <script type="text/javascript" src=" http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script> <script src="http://code.jquery.com/jquery-latest.min.js"...