function in JS as examples
Advanced JQuery function in examples