Dear programmers,
I'm quite new to Javascript and jQuery in general, and now stuck with a problem.
In my header I added a Javascript file like this:
$().ready(function(){
function hello(){
alert('hello');
}
}
What I want now is calling the hello function from the body. Is that possible? My browser gives an error that the function is undefined. Also with statements like this:
<script language="javascript">
if($(document).ready){
hello();
};
</script>
Hope some of you can help me! Thanks in advance.