Call function in jQuery
<p>I have created a function inside a .click</p>

<pre><code>$('#BeforeFunction').click(function(){

//something is entered here then the function below is called
Hello();

});

$('#HitMe').click(function(){
//something here.....
function Hello(){
alert ('Hit button is pressed');
}

});
</code></pre>

<p>But the function when called causes an error, the message being Hello is not defined.</p>

<p>What is wrong exactly.</p>

<p>Thanks
Jean</p>
