Skip to content

Instantly share code, notes, and snippets.

@takamin
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takamin/eae8eb526341f110d10c to your computer and use it in GitHub Desktop.
Save takamin/eae8eb526341f110d10c to your computer and use it in GitHub Desktop.
the TextBox plugin that utilizes styles jquery-ui.spinner
$.fn.uitext = function() {
this.addClass("ui-spinner-input")
.css({'margin-right':'.4em'})
.appendTo(
$('<span/>')
.addClass("ui-spinner")
.addClass("ui-widget")
.addClass("ui-widget-content")
.addClass("ui-corner-all")
.insertBefore(this));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment