Skip to content

Commit

Permalink
Merge revert-154-revert-147-rails7 into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-branch-merger[bot] authored Jan 3, 2024
2 parents a4c42a7 + 0eafefc commit fca93fe
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions public/campaign-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,17 @@ script.onload = function () {
window.campaignForms.registerForms()
})

$(document).ready(function() {
jQuery(document).ready(function() {
console.log('ready')
$("[id^='cf_Country_']").change(function(){
if ($(this).val()!='US'){
$("[for^='cf_US_State_']").hide()
$("[id^='cf_US_State_']").hide()
} else {
$("[for^='cf_US_State_']").show()
$("[id^='cf_US_State_']").show()
}
})
jQuery("[id^='cf_Country_']").change(function(){
if (jQuery(this).val()!='US'){
jQuery("[for^='cf_US_State_']").hide()
jQuery("[id^='cf_US_State_']").hide()
} else {
jQuery("[for^='cf_US_State_']").show()
jQuery("[id^='cf_US_State_']").show()
}
})
})
};
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js';
Expand Down

0 comments on commit fca93fe

Please sign in to comment.