JSFiddle - React, Tailwind, and code Playground

by Jaecheol Kim

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/smoothness/jquery-ui.css">
<table>
    <tr>
        <td class='blocked'>111</td>
        <td>222</td>
    </tr>
    <tr>
        <td>333</td>
        <td>444</td>
    </tr>
</table>
<button id="clear">clear</button>

JavaScript

$("table").selectable({
    filter:"td",
    cancel: ".blocked",
});