How Can I Override A Function In Javascript
<p>I have the following scripts:</p>

<pre><code>&lt;script ... jquery-1.9.1.js"&gt;&lt;/script&gt;
&lt;script ... dataTables.js"&gt;&lt;/script&gt;    
&lt;script ... columnFilter.js"&gt;&lt;/script&gt;
</code></pre>

<p>The following code exists in columnFilter.js:</p>

<pre><code>(function ($) {

   $.fn.columnFilter = function (options) {
       //some code...

       function _fnCreateCheckbox(oTable, aData) {
           //some code...
       }

   };

})(jQuery);
</code></pre>

<p>What I would like to do is override <code>function _fnCreateCheckbox(oTable, aData)</code> with my own code. Im fairly new to javascript, so would appreciate an example.</p>

<p>I have tried simply grabbing the code above and adding it to it's own <code>&lt;script&gt;</code> tags, but that didn't work. It completely stopped the columnFilter.js from working (which is as expected I guess). Not really sure what else to try.</p>
