Get the original HTML5 input @type (jQuery plugin)
A browser that doesn’t support a new HTML5 input type will change the type of any unrecognized input to text. This is good because it means it’s reasonably safe to use new HTML5 input types right now, even in old browsers. But this affects the DOM, and we might want to know what we originally wanted it to be in order to provide a fallback for validation or UI. This post covers a jQuery plugin that will return the HTML5 input type even if the browser doesn’t support HTML5.