html:
<button class='expandotron'></button>
<div class='detail-view'></div>
<button class='expandotron'></button>
<div class='detail-view'></div>
<button class='expand'></button>
<div class='detail-view'></div>
the jquery:
$('.expandotron').click(function() {
if($( ".detail-view" ).css('display') != 'none'){
$( ".detail-view" ).css('display', 'none');
$( ".fixed-table-body" ).css('height', '0px'); // ignore this line
$( ".table-pad ").css('padding', '0px'); // ignore this line
} else {
$( ".detail-view" ).css('display', 'table-row');
$( ".fixed-table-body" ).css('height', 'auto'); //ignore this line
$( ".table-pad" ).css('padding', '12px'); // ignore this line
}
This just links all of the buttons to all of the divs
fixed-table-body
andtable-pad
come into play here? And is each button supposed to affect thedetail-view
div right after it, or is it supposed to work some other way?