I have a set of buttons and you want to set the width of each button so that they can be the same size (i.e. if I have 4 buttons, 25% of each element)
Basically, the site has a table on the left, and inside this table I have 4 options. The way it is now is not using a 100% left column, so it looks bad. I want the button to be set to 100% of the column, and each button share 25% of the fixed space.
I tried using .css ('width') each button element, but that does not change.
My code looks something like this:
<script type='text/javascript'> $( function() { $("#task-sort").buttonset(); } ); </script> <div id='task-sort'> <input type='radio' name='task-sort' id='sort_all' checked><label for='sort_all'>All</label> <input type='radio' name='task-sort' id='sort_inc'><label for='sort_inc'>Incomplete</label> <input type='radio' name='task-sort' id='sort_com'><label for='sort_com'>Completed</label> </div>
source share