Friday, February 6, 2015

Jquery , Simple plugin with default options

check this sample fiddler, http://jsfiddle.net/androidyou/dox5x8pp/

basically, we can use the $.extend to assign a default value if options are not assigned.

image

if you put default option,

image

image

No comments:

 
Locations of visitors to this page