Snaps in JavaScript

JavaScript

JavaScript is a dynamic computer programming language. It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user

How you can mix pushState with sammy.js while writing single page application. Example is written on top of jQuery. Requesting page from your browser via URLs: localhost/ localhost/example localhost/example/test will not reload the page and it...

spa pushstate routing html5

This code check if window have certain size, depend on window size. I've applied bootstrap media queries size. Get windows size on resize....

media queries window resize

This short code added at the bottom of page make all of dropdown menu's elements equal height....

bootstrap

In JavaScript String (unlike array) hasn't got native reverse function (at least by now). To reverse string we can use both String.prototype or "third party" function. To see full code and demo check out http://jsbin.com/gawiga/2/edit?html,js,ou...

reverse string

Generate empty JSON 2d array....

json.net

This code triggers function click on button after one second....

timer

Object can be found with grep function:...

array object find property grep

jquery - serialize inputs from array with serializeArray()...

serializearray

Get selected value from select using val()...

select

To add item to array 'push' function is used....

array add

Click of the element starting with prefix....

event prefix click element

Property can be accessed with dot:...

object property dot

Selected options from select2 can be accessed like this:...

select2 selected

In Javascript array can be declared with implicit declaration as function return value as follows:...

array declaration

In Javascript array can be declared using literal notation like this:...

array declaration

In Javascript array can be declared with array constructor:...

array declare constructor