Created
December 30, 2014 18:10
-
-
Save dan-gamble/9f8d28c64ea1c2d9bf9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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