auto complete code snippet like google suggestions
Categories
auto complete code snippet like google suggestions
Simple stack implementation for JS
Nice ajax function to grab the latitude and longitude of an address or postcode. Don’t forget your google key and address formatting.
Could be improved by passing an event instead of a simple payload.
The bubble sort algorithm implemented in JavaScript
This is a jQuery custom function used for clearing the default input values of input fields without having to add a class or inline javascript like onclick or onblur. Just write your input and give it a value like you normally would and then add this function and you’re good to go.
Code obtained from a [stackoverflow question](http://stackoverflow.com/questions/4672279/bresenham-algorithm-in-javascript). This is a javascript implementation of the [Bresenham line algorithm](http://en.wikipedia.org/wiki/Bresenham’s_line_algorithm). Given two points, this function will return an array of coordinates which go from point A to point B, one step at a time.
CSS: .error style the error class Form HTML: class=”required” makes the input field required minlength=”2″ makes the field require at least 2 characters
The jQuery autocomplete plugin allows developers to implement autocompletion for text input fields. Suppose you have a dictionary application. You might want to autocomplete words for a user to ease searching.
Bookmarklet to show the Google +1 button on the page you are viewing.