Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
  <table>
    <tr>
      
      
      <td>
        <div class="input">
            <input type="submit" class="button"/>
            <input type="submit" class="button"/>
            <input type="submit" class="button"/> 
            <textarea class='commento' maxlength='100'></textarea>
        </div>
      </td>
    </tr>
    <tr>
      <td><input type="checkbox" /></td>
      <td><input type="text" class="room" /></td>
      <td><input type="text" class="room" /></td>
      <td><input type="text" class="room" /></td>
    </tr>
    <tr>
      <td><input type="checkbox" /></td>
      <td><input type="text" class="room" /></td>
      <td><input type="text" class="room" /></td>
      <td><input type="text" class="room" /></td>
    </tr>
  </table>
</body>
</html>
 
$(function(){
 
});
$(function (){
 
  $('.input').click(function(){  
    $(this).closest(".input").find(":input.button").attr("disabled", true); 
    
  
    
  });
  $(":checkbox").click(function(){
    $(this).closest("tr").find(":input").attr("disabled", $(this).is(":checked"));
  });
  
  
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers