JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/jquery-latest.js"></script>

<input type="button" value="Button1" />
<input type="button" value="Button2" />
<input type="text" value="Text1" />
<input type="checkbox" value="CheckBox1" />
<input type="radio" value="Radio1" />
<input type="submit" value="Submit1" />
<input type="reset" value="Reset1" />

JavaScript

$(document).ready(function() {
        var id = "";
        // Test
        $('input').attr("disabled", "disabled");
        // Remove attr disabled from text to try code
        $('input[type="text"]').removeAttr("disabled");

        // Check for attr != disabled here
        $('input').each(function () {
            if ($(this).attr("disabled") != "disabled")
            { id = $(this).get(); }
        });
        // Found
        alert($(id).val());
    });