179
rated 0 times
[
181]
[
2]
/ answers: 1 / hits: 16414
/ 11 Years ago, sun, august 4, 2013, 12:00:00
I am using jquery .toggle() to show a div on a page that has display:none on page load. However, under the default settings jquery inserts display:block, where I would want display:table-cell. How can I achieve this? My attempt so far:
<div class=mydiv styledisplay:none>test</div>
.mydiv {
display:table-cell;
}
$(a#showdiv).click(function() {
$(.mydiv).toggle();
More From » jquery