JSFiddle - React, Tailwind, and code Playground

by rpflorence

HTML

<input id="fixture" name="hi" value="foo">

JavaScript

var el = jQuery('#fixture'),
    name = el.attr('name'),
    nuffin = el.attr('title');

console.log(typeof name, typeof nuffin);

// `nuffin` should be an empty string per DOM spec, it also just makes sense.
// http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-666EE0F9