19 lines
336 B
JavaScript
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();
|
|
}); |