Hot answers tagged

2

A short review; You inlined the success function, I would use a properly named function outside of that block This $('#favoritepagesListBlock').empty(); $('#meetingsanddisclosuresBlock').empty(); $('#memberinstitutionBlock').empty(); $('#orderListBlock').empty(); can be $('#favoritepagesListBlock,#meetingsanddisclosuresBlock,#...


2

First, make your code work. orderShowMore = true is assigning true to orderShowMore - the code in the block after this is inevitably going to get executed. Just go if(orderShowMore). Second, don't use two variables named data - while scoping may make it unambiguous to the compiler, it's confusing to anyone reading your code. Also, consistent indenting goes ...


Only top voted, non community-wiki answers of a minimum length are eligible