JSFiddle - React, Tailwind, and code Playground

by Bhushan Kawadkar

HTML

<table>
    <tr class="gridAlternateRow">
      <td>
       <span style="color:red;">*</span>&nbsp;Name
      </td>
      <td colspan="4">
          <div class="row">
              Cool
                 <br />
                 <input type="checkbox" id = "checkbox1">
                        <br />
                   <div id="textboxshow">
                       <input type="text" style = "display:none;" readonly = "readonly">
                        <input type="text" style = "display:none;" readonly = "readonly">
                  </div> 
         </div>
     </td>
</tr>
</table>

JavaScript

$(document).ready(function () {
         $('#checkbox1').click(function(){
            $('#textboxshow input').show();
         });
      });