Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id="dialog-modal"></div>
  
  <div id="temp" style="visibility:hidden;">
    <table border="0" width="99%">
    <tbody>
        <tr>
            <td width="80%">&nbsp;</td>
            <td width="10%" align="center">
                <span>A</span>
            </td>
            <td width="10%" align="center">
                <span>B</span>
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
        <tr>
            <td>
                <a>
                    <div title="Title" class="componentClass">Title</div>
                </a>
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="schedule-checkbox" />
            </td>
            <td width="10%" align="center">
                <input type="checkbox" class="assign-checkbox" />
            </td>
        </tr>
    </tbody>
</table>
  </div>
</body>
</html>
 
$(document).ready(function(){
   var height = $(window).height();
   height = height*0.20;
  $( "#dialog-modal" ).html($("#temp").html());
  $("div#dialog-modal").dialog({
      height: "auto",
      maxHeight: height,
      resizable: false,
      width: "70%",
      modal: true,
      title: "Hello"
  });
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers