PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Simple jQuery addition to my form not working

  1. I have a recreated a simple version of my problem @ http://bookbindingbycrawford.co.uk/1336-2/

    I have a simple drop down, add it has conditional logic attached to it so if you select United Kingdom, or Ireland then a drop down that contains the counties is visible, but I also have jQuery populate the input below with the value of the country drop down (this is more complicated in my original form), these values are connected to JSON for a money value. But even without this complication I am still having problems. See below my jQuery

    The problem arrises when you select United Kindgom or Ireland, the value doesn't appear, but if you click the empty input then the value appears.

    `
    selectBox = jQuery("#input_11_2");
    targetBox = jQuery("#input_11_1");
    selectBox.change(function() {
    var selectVal = selectBox.val();
    country2Amount = (info[selectVal]);
    jQuery("#input_11_1").val(country2Amount);
    }).change();
    `

    Posted 10 years ago on Monday June 10, 2013 | Permalink