Submit form fields based on selection of other fields
<p>this is the code i'm using to copy all form fields to one  before it get's submitted. How can I limit what gets copied to the  field based on whether or not the field is filled in?</p>

<p>Basically, I don't want empty form fields passed when a user submits a form.</p>

<pre><code>$('form').submit(function(){

    $('#description').val(
        '----------------------------------------------\n' +
        'Contact info\n' +
        '----------------------------------------------\n' +
        'IU network ID:' + $('[name=username]').val() + '\n \n \n' +
        '----------------------------------------------\n' +
        'Event information\n' +
        '----------------------------------------------\n' +
        'Meeting name: ' + $('[name=title]').val() + '\n\n' +
        'Repeat: ' + $('input[name=repeatSchedule]:checked').val() + '\n\n' +
        'Event date: ' + $('[name=eventDate]').val() + '\n\n' +
        'Event start time: ' + $('[name=eventStartTime]').val() + '\n\n' +
        'Event end time: ' + $('[name=eventEndTime]').val() + '\n\n' +
        'Multiple events description: ' + $('[name=multipleMeetingDescription]').val() + '\n \n \n'
    );
});
</code></pre>
