Web hide docs in jquery.
Set style visibility jquery. Web i used this code to change the css visibility attribute with jquery. Hide() will not change the style if already hidden. Change them to class instead and select them using $(.myspan).
So doing the latter won't rectify the former. Web fix the style values first (visible should be visibility, and diaplay should be display). So keep your original jquery and add this to css:
Var visible = $ ('input [type=checkbox]').filter (function () { return ! The first will overwrite any existing style settings. $ (ul li [rel= + req_id + ]).removeclass ().addclass ('complete') $ (ul li [rel= + req_id + ]).child ('.controls').child ('.delete').css ('visibility','visible') however, you should use css for this.
($ (this).css ('visibility') == 'hidden' || $ (this).css ('display') == 'none'); Web using asp.net's visible=false property will set the visibility attribute where as i think when you call show() in jquery it modifies the display attribute of the css style. Where the element1 on hover will change visibility of element2.
So,.css ('display', 'none') would be matched with.show (). Based on the comment below, you are removing all style with removeattr(style), in which case call hide() immediately after that. This will use the normal cool animation to hide the div, but after the animation finish you set the visibility to hidden and display to block.
Also, id s should only be used once. Web behind the scene jquery's hide and show just set display: I just checked the jquery 1.7 source code and verified that is the case.