$ (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.
Set style visibility jquery. Based on the comment below, you are removing all style with removeattr(style), in which case call hide() immediately after that. Web i used this code to change the css visibility attribute with jquery. The first will overwrite any existing style settings.
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. So,.css ('display', 'none') would be matched with.show (). Web just two ways to accomplish the same goal.
So keep your original jquery and add this to css: Var visible = $ ('input [type=checkbox]').filter (function () { return ! Web fix the style values first (visible should be visibility, and diaplay should be display).
Web you can use the css function to get the style of the element, and the filter function to select them from a collection of elements: Where the element1 on hover will change visibility of element2. Also, id s should only be used once.
Web behind the scene jquery's hide and show just set display: $ ('#subs_selection_box').fadeout ('slow', function () { $ (this).css ( {visibility:hidden}); Change them to class instead and select them using $(.myspan).
Web hide docs in jquery. 40 jquery's.show () and.hide () only operate on the css display property, not on the visibility property. Hide() will not change the style if already hidden.