I am not able to understand how jQuery chaining works [closed]
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am not able to understand how jQuery chaining works. jQuery("div").attr("id", "_id") .hide() .show(); I did something like chaining, but I'm not sure if it's the same logic that jQuery uses. var fun = (function