Orbit/app/assets/javascripts/user_form.js

6 lines
159 B
JavaScript

$(document).ready(function(){
$('#active_role').change(function(){
$('#roles .attributes_block').hide();
$('#'+this.value+'_block').toggle();
});
});