Skip to content

Instantly share code, notes, and snippets.

@dan-gamble
Created December 30, 2014 18:10
Show Gist options
  • Save dan-gamble/9f8d28c64ea1c2d9bf9c to your computer and use it in GitHub Desktop.
Save dan-gamble/9f8d28c64ea1c2d9bf9c to your computer and use it in GitHub Desktop.
$('.field-wrapper').each(function() {
var _this = this;
$('.controls select').each(function() {
$(this).on('change', function() {
console.log($('.selected-values span:first-child', _this));
$('.selected-values span:first-child', _this).text($(this, _this).val());
});
});
//$('.controls select').on('change', function() {
// $('.js-value-1', _this).text($('#id_min_rating', _this).val());
// $('.js-value-2', _this).text($('#id_max_rating', _this).val());
//});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment