Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • 2
    You are resetting curTallest to zero upon each iteration. You may want to set this outside of your each loop. Also, only reset the divGroup height if current.height() > curTallest. Commented Dec 11, 2014 at 21:11
  • somthing messing up always gets me! Commented Dec 11, 2014 at 21:12
  • cardHeights() expects a jQuery object. You are passing it a string. Commented Dec 11, 2014 at 21:14
  • @showdev so I need to pass it like cardHeights($('.card'))? Commented Dec 11, 2014 at 21:17
  • Yes, or generate that object from the string inside your function, e.g. var divGroupObject = $(divGroup). Either way. Commented Dec 11, 2014 at 21:19