Created
February 23, 2015 19:32
-
-
Save devdays/71d465ee7f59aff82b3f to your computer and use it in GitHub Desktop.
jQuery Widget _create
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$.widget("custom.clicker", { | |
_create: function () { | |
var startingValue = this.options.startingValue; | |
this.element.text("The starting value is " + startingValue); | |
} | |
}); | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment