Hopefully this is possible and someone can help. Basically, I have created a package Sign Up form, so users can select which features of the package they want to include, see the price and then sign up for the package.
The user picks their choices from drop down select boxes, presses an Add button to increase the packages price and then once happy, they can click Sign Up to submit.
What I need to have happen is if a user uses the dropdown, selects an option, but does not click add, they should get a message saying to click Add before continuing if they click Sign Up.
Currently, if I enter 25.511 as my value, the result displays as 25.51, which shows that the code is sort of working, my issue is just when the second decimal place is 0 that it does not display.
I am not very experienced with jQuery and need help implementing a fix for the issue where if you place a Google Map into a hidden div it does not load fully and only shows in full after the browser window is resized.
I understand that the following has to be added to my code, but I just really dont know where or how:
google.maps.event.trigger(map,'resize');
I have tried adding it to my header file, to the jQuery file, to the HTML files but to no avail.
My hidden divs are using a Slide Up and Slide Down effect to display the content and the js code is:
// run the function below once the DOM(Document Object Model) is ready
jQuery(document).ready(function( $ ) {
// trigger the function when clicking on an assigned element
jQuery("#distribution .more").click(function () {
// check the visibility of the next element in the DOM
if (jQuery(this).next().is(":hidden")) {
jQuery(this).next().slideDown("slow");
jQuery("#distribution").addClass("distribution_expand"); // slide it down
var center = map.getCenter(); google.maps.event.trigger(map, 'resize'); map.setCenter(center);
} else {
jQuery(this).next().hide(); // hide it
jQuery("#distribution").removeClass("distribution_expand"); // slide it up