JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title> disabled test case</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"> </script>
</head>
<body>
<form action="" method="post">
<label for="test">Label element</label>
<select name="test" id="test">
    <option name="1">Select me</option>
</select>
<a href="#" id="toggle-on">Enable</a> | <a href="#" id="toggle-off">Disable</a>
</form>
</html>

JavaScript

$(document).ready(function () {
    var on = $('#toggle-on');
    var off = $('#toggle-off');
    var target = $('#test');

    off.bind('click', function (e) {
        e.preventDefault();
        target.prop('disabled', true);
    });

    on.bind('click', function (e) {
        e.preventDefault();
        //target.removeProp('disabled');
        target.prop('disabled', false);
    });
});