how to call global function in jquery
<p>i have make two global function now i want to call them in my HTML page. i have make separate file for global function and calling them it into our HTML page but it seems that something wrong with my code</p>

<pre><code>&lt;script type="text/javascript"&gt;
(function ($) {
    jQuery.functionOne = function () {
        var text = "i am first"
    };
    jQuery.functionTwo = function (param) {
        var text = "i am second"
    };
})(jQuery);
$('.first').text().functionOne();
$('.second').text().functionTwo();
&lt;/script&gt;


&lt;body&gt;
    &lt;div class="first"&gt;&lt;/div&gt;
    &lt;div class="second"&gt;&lt;/div&gt;
&lt;/body&gt;
</code></pre>
