Opportunity html
Jump to navigation
Jump to search
| Line 653: | Line 653: | ||
$('.target_country_group_button').on('click', function() { | $('.target_country_group_button').on('click', function() { | ||
| − | + | ||
var selected = !$(this).hasClass('selected') | var selected = !$(this).hasClass('selected') | ||
var key = $(this).attr('data'), | var key = $(this).attr('data'), | ||
country; | country; | ||
| − | + | ||
for(var i in country_groups[key]) { | for(var i in country_groups[key]) { | ||
country = country_groups[key][i] | country = country_groups[key][i] | ||
| − | + | ||
$('#select_countries option:contains(' + country + ')').prop('selected', selected); | $('#select_countries option:contains(' + country + ')').prop('selected', selected); | ||
//$('#select_countries option[value=' + country + ']').attr('selected', selected); | //$('#select_countries option[value=' + country + ']').attr('selected', selected); | ||
Revision as of 20:20, 4 March 2020