jQuery LoadingPanel Change Options Dynamically

To change any of the widget options dynamically you need to get the initial options, change the desired properties and call the widget refresh(options) method, passing the new values.
This is demonstrated in the code below:

<script type="text/javascript">
$("#loadingpanel1").shieldLoadingPanel({
    text: "loading...",
    showImage: false
});
function changeOptions() {
    var loadingpanel1= $("#loadingpanel1").swidget(),
    options = loadingpanel1.initialOptions;
    options.text = "LOADING…" ;
    loadingpanel1.refresh(options);
}
</script>