I am currently facing an issue where I have a script that utilizes ajax to receive a response containing a cart string (html code) with items from the cart. Inside the response handler, there is another script that sets the height of each div in the cart string.
My challenge now is to maintain the height of the div set for the previous cart string as the entire cart string gets re-received after each ajax call.
Furthermore, there is a separate cart (for mobile only) displayed in a bootstrap modal. The function responsible for setting the height does not work unless you open the modal and run the function again. Could this be due to the modal being displayed as none? The function loops through all divs with the same class name and adjusts their height based on child data.