JavaScript and Jquery: How can you call a jquery function from within a javascript function
<p>I have a button in a form that when clicked sends a variable to a javascript
function.  When the variable equals "link" I want to call a jquery function called makeLink().</p>

<p>This is what I have:</p>

<pre><code>function getText(change)
{
   if(change == "link")
   {
      //call jquery function called makeLink()

   }

}
</code></pre>

<p>And here is my jquery function that creates a modal pop up with a form:</p>

<pre><code>$(document).ready(function(){

function makeLink() {
    if ($("#makeALinkModalPopup").is(":hidden")){
    $("#makeALinkModalPopup").fadeIn("slow");

     $("#backgroundPopup").css({  
        "height": document.documentElement.offsetHeight

      });

    $("#backgroundPopup").css({"opacity": "0.7"});
    $("#backgroundPopup").fadeIn("slow"); 

        }

    }


});
</code></pre>

<p>Thanks for your help.</p>
