Results 1 to 2 of 2

Thread: what is example tag

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Location
    Karachi
    Posts
    551

    what is example tag

    what is example tag in following code .its div ,html table or else

    $(document).ready(function() {
    $('#example').dataTable();
    } );

    taken reference from here http://datatables.net/examples/data_...rver_side.html
    There is no achievement without goals

  2. #2
    Hyperactive Member coothead's Avatar
    Join Date
    Oct 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    284

    Re: what is example tag

    Hi there ERUM,

    in this...
    Code:
    
    $(document).ready(function() {
    $('#example').dataTable();
    } );
    
    ..."#example" is the id of the table that is used in that site's "Data Tables example"....
    Code:
    
    <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
    	<thead>
    		<tr>
    			<th width="20%">Rendering engine</th>
    			<th width="25%">Browser</th>
    			<th width="25%">Platform(s)</th>
    			<th width="15%">Engine version</th>
    			<th width="15%">CSS grade</th>
    		</tr>
    	</thead>
    	<tbody>
    		<tr>
    			<td colspan="5" class="dataTables_empty">Loading data from server</td>
    		</tr>
    	</tbody>
    	<tfoot>
    		<tr>
    			<th>Rendering engine</th>
    			<th>Browser</th>
    			<th>Platform(s)</th>
    			<th>Engine version</th>
    			<th>CSS grade</th>
    		</tr>
    	</tfoot>
    </table>


    ~ the original bald headed old fart ~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width