asp.net - jQuery slideDown select certain element? -
I have a jQuery function that slides down an animation on a certain element when it is clicked like this
$ ('decrease') (function () {$ ('. Content entry'). SlideUp ('slow', function) (// animation complete}}}} ;
The above script is written inside the web user control.
The problem is that if one page has many examples of controls, the slidedown function Also present in the example in the page.
I want to execute the function only in control.
How to do this? Thanks
You can climb on the container in both of them and click relatively find this element (function () ($ (this SlideUp ('slow');});
It considers some such markup:
P>
As long as they are inside some containers with one class or other specialty, you can use it and get the .contentTD
only < Em> that container or, if they have a simple example above, works, or something like other , the point is $ (this)
(Find the .imimize
you clicked) and its related element
Comments
Post a Comment