Skip to content

Instantly share code, notes, and snippets.

;(function($) {
$.fn.extend({
getID: function() {
return parseInt($(this).attr("id").match(/\d+/)[0]);
},
setInputHint: function() {
if ($(this).length > 1) {
$(this).each(function() {
$(this).setInputHint();
});