jQuery(document).ready(function($){

    $(document).on('click', '#vw-solar-energy-welcome-notice .notice-dismiss', function(){

        $.ajax({
            type: 'POST',
            url: ajaxurl,
            data: {
                action: 'vw_solar_energy_dismiss_notice'
            }
        });

    });

});