I have a div that displays information based on what options are chosen. Basically there's a few divs on the page that are set to hidden, when the user selects options from the dropdown that aren't the holding text (like "please select..."
or some variant) the price div populates itself with the price. IDs and classes of the options can change and there's no way to determine them before hand (dynamically populated).
I've got another div on the page that I'm looking to populate when that first price div becomes visible, extract the amount from it, perform some calculation on it and display it.
I was thinking about something along the lines of this:
jQuery( "form.variations_form cart" ).children("div.single_variation").change(
function(){
/* update the div */
}
);
I've put everything down on the jsfiddle so you can see it but please note the comments. Here's a link to jsfiddle: http://jsfiddle.net/Scott_McGready/h3G6A/1/
Any idea on how to monitor that initial box, pull through the price and display it on the other one?