22 lines
339 B
JavaScript
Raw Normal View History

2015-08-12 16:59:20 +02:00
$(document).ready(function(){
var formGroupFonction = function(){
var vals = $('#pages').val();
$('.form-group-page').hide();
2015-08-12 17:27:09 +02:00
if(!vals)
return;
2015-08-12 16:59:20 +02:00
$.each(vals, function(index, value){
$('.form-group-'+value).show();
});
2015-08-12 17:27:09 +02:00
}
2015-08-12 16:59:20 +02:00
$('#pages').on('click', function(){
formGroupFonction();
});
formGroupFonction();
});