First, I'm going to start with a quick confessional: when reading this question JQuery - Hide/Show with logic, over on Stack Overflow, I got a bit cross. And left a comment:
Please, please, could this be the last time someone describes their HTML at us? Really, it's so much easier to just show it to us...and, maybe, provide a live demo, at JS Fiddle, JS Bin, or similar...are all the elements in the same containing element? Or is there a pair, comprised of a portlet-topper and a portlet-content in each wrapper? Or some other structure?
(I've not implemented the original links to JS Fiddle or JS Bin here, but they were there, for use.)
My question is based upon a certain... irritation built from experience in helping people with client-side/front-end web-development based questions (which I otherwise truly enjoy doing), in which, for some reason, some users (by no means exclusively new users, and I don't intend to accuse anyone of laziness, just, at worst, maybe a lack of awareness) seem to feel it appropriate to describe their HTML structure to those that want to help.
This is frustrating, because:
- It's almost always more concise to show the HTML, or a relevant (SSCCE) excerpt,
- It's much easier to understand the HTML code, rather than trying to infer it from someone's description,
- It often (if not always) leads to various questions about how various elements within that HTML relate to each other,
- It leads to guesses posted as answers (which is basically speculation, and suggests that the question itself should/could be considered 'not a real question' and eligible for closing, which I'd rather not do, I'd rather help).
But, for the sake of my sanity, I just had to ask. And, perhaps, apologise for my momentary irritation.