How do I save JS classes being applied to the WP dashboard via custom plugin?

After some thought, my question might have been unclear, or there was way too much code to explain it in a compact way.

What I wanted was to apply classes to the metabox that show/hide an area based on a select box value within that metabox. The area contained radio buttons but weren’t important to the overall question I asked – sorry for the confusion! I realized I didn’t need to communicate with the PHP at all. The JS file I made would load every time the post gets published/updated.

In addition to the JS function I showed in my question as an example that fires on “change” for the #enable-field-here select box, I now have a function that fires on load. If the dropdown is set to yes, then the classes are handled, therefore “saving” the state of the metabox even after the post has been published/updated. It looks something like this in jQuery now. I continued down that path with any other areas affected by classes via JS with the same approach. Hope that helps someone in the future. 🙂

var enableField = $( '#enable-field-here' );

setEnableDefault( enableField );
enableField.change( enableOptions );

function setEnableDefault( enableVal ) {
    var fieldOptions = $( '#fieldWrapper' );

    if ( enableVal === 'yes' ) {
        fieldOptions.removeClass( 'disabled' );
    } else {
        fieldOptions.addClass( 'disabled' );
    }
}

function enableOptions() {
    var enableVal    = $( this ).attr( 'value' ),
        fieldOptions = $( '#fieldWrapper' );

    if ( enableVal === 'yes' ) {
        fieldOptions.removeClass( 'disabled' );
    } else {
        fieldOptions.addClass( 'disabled' );
    }
}