[ACCEPTED]-Resizing the HTML table width in jQuery-html-table

Accepted answer
Score: 14

This should do the trick.

<table class="zebra">
  <tr>
    <td>foo</td>
    <td>bar</td>
  </tr>
</table>

<script type="text/javascript">
  $(function() {
    $('table.zebra').attr('width', 500);
  });
</script>

0

Score: 10

Try this:

$("table.zebra").width(200);

Reference: http://docs.jquery.com/CSS/width#val

0

Score: 5

This should do the trick

$("table.zebra").width('200px');

0

Score: 0

This worked for me

    $('#MyModalID').find('.modal-dialog').css({
                width: '800px'
            });        

0

More Related questions