javascript - Why is this jQuery not sliding down/showing hidden (slid up) elements? -


i create rows ids of foapalrow3 , foapalrow4 in c#, making them temporarily invisible:

foapalrow3 = new htmltablerow(); foapalrow3.id = "foapalrow3"; . . . foapalrow3.visible = false;  foapalrow4 = new htmltablerow(); foapalrow4.id = "foapalrow4"; . . . foapalhtmltable.rows.add(foapalrow4); foapalrow4.visible = false; 

i have jquery condtionally make visible again:

$(document).on("click", '[id$=btnaddfoapalrow]', function (e) {     if ($('[id$=foapalrow3]').css('display') == 'none') {         $('[id$=foapalrow3]').slidedown();     } else if ($('[id$ = foapalrow4]').css('display') == 'none') {         $('[id$=foapalrow4]').slidedown();     } }); 

...but doesn't work - rows still not shown. "visible == false" in c# not match "display == none" in jquery, or what?

you check display property using

$('[id$=foapalrow4]').is(":visible");  

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -