jQuery Menu 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:

<ul id="menu1">

<script type="text/javascript">

    $(function () {
            delay: 200

         function changeOptions() {
             var menu = $("#menu1").swidget(),
             options = menu.initialOptions;
             options.delay = 300;