ype="checkbox"]').each(function(){
                  // If checkbox doesn't exist in DOM
                  if(!$.contains(document, this)){
                     // If checkbox is checked
                     if(this.checked){
                        // Create a hidden element
                        $(form).append(
                           $('<input>')
                              .attr('type', 'hidden')
                              .attr('name', this.name)
                              .val(this.value)