PATH:
home
/
letacommog
/
puissancelec
/
wp-content
/
themes
/
betheme
/
muffin-options
/
fields
/
checkbox_pseudo
/** * @param {Object} $ - jQuery reference * @return {Object} .init - Method to start the closure */ var Mfn_Checkbox_Pseudo = ( function( $ ){ /** * Attach events to buttons. Runs whole script. */ function init() { check(); } /** * */ function check() { $( '.mfnf-checkbox.pseudo input[type="checkbox"]' ).change( function(){ var el = $( this ).closest( '.mfnf-checkbox.pseudo' ), value = ''; $( 'input:checked', el ).each( function(){ value = value + ' ' + $( this ).val(); }); $( 'input.value', el ).val( value ); }); } /** * Return * Method to start the closure */ return { init: init }; })( jQuery ); jQuery( document ).ready( function(){ var mfn_checkbox_pseudo = Mfn_Checkbox_Pseudo.init(); });
[+]
..
[-] field_checkbox_pseudo.js
[edit]
[-] field_checkbox_pseudo.php
[edit]