2015-08-12 16:59:20 +02:00

19 lines
336 B
JavaScript

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