How can I change from a function call to now use function (e, arg) with jQuery?
<p>I have been using the following code:</p>

<pre><code>        $("input[id^='Order_'], input[id^='Default_']")
        .change(function (e) {
            var type = $(this).attr('id').split('_')[0];
            updateField('Menu', $(this), type);
        });
</code></pre>

<p>But now I started to use a widget and this has the following kind of code:</p>

<pre><code>        $("input[id^='Order_']")
            .wijinputmask({
                mask: '0-0-0-00',
                hidePromptOnLeave: true,
                textChanged: function (e, arg)
            })
</code></pre>

<p>How can I change from what I had before where it just calls the updateField function to this new kind of format where it says function (e, arg). Should I put my call to updateField inside the function (e,arg)? </p>

<p>From what I see in the documentation:</p>

<pre><code>e: The jQuery.Event object.
args: The data with this event.
args.text: This is the new text.
</code></pre>
