2015-08-12 17:27:09 +02:00

22 lines
339 B
JavaScript

$(document).ready(function(){
var formGroupFonction = function(){
var vals = $('#pages').val();
$('.form-group-page').hide();
if(!vals)
return;
$.each(vals, function(index, value){
$('.form-group-'+value).show();
});
}
$('#pages').on('click', function(){
formGroupFonction();
});
formGroupFonction();
});