JSFiddle - React, Tailwind, and code Playground
by joshuaecook
HTML
<!DOCTYPE html>
<head>
<title>Map</title>
<body>
<input type="text"><br>
<input type="radio"><br>
<input type="checkbox"><br>
<input type="hidden"><br>
<input type="text" disabled><br>
<input type="radio" disabled><br>
<input type="checkbox" disabled><br>
<input type="hidden" disabled><br>
JavaScript
$('input').each(function(ix, el) {
if (!($(el).is(':enabled') ^ $(el).is(':disabled'))) {
$('body').append('Input #' + ix + ' type ' + el.type + ' is: enabled? ' + $(el).is(':enabled') + '; disabled? ' + $(el).is(':disabled') + '<br>');
}
});