Example: http://jsfiddle.net/phucpnt/tqTv8/