hi there.

1. ensure the script refference to JQuery is correct

<script type="text/javascript" src="JQuery.js"></script>
ensure the path is correct as well as the spelling

if  your script refference is correct and the errors continue try this. when
executing your js

<script type="text/javascript">
$(function() {

// ensure all the JQuery your do runs inside of this

var active = 'false'; // when declaring a variable say *var myVariableName =
value;*

$(".menulink").mouseover(function() { // there is no need to include
(active)
// perform these methods while mouseover menu link
active = 'true';
$(".TEST")>html(active);

});

});

</script>

I also noticed you [b] [/b] tags - do not use them
On Sat, Jul 4, 2009 at 5:02 PM, pixelvoodoo <webdesigner.p...@googlemail.com
> wrote:

>
> Hi,
>
> New to JQuery and hope this question has an easy solution.
>
> At present I am trying to assign a global variable from a function
> which is called on a mouseover event, fired by going over a hyperlink
> with a specific class.
>
> The code:
>
> [b]     active = "false"
>
>        $('.menulink').mouseover( function(active) {
>                active = "true"
>                return active
>        });
>
>        $('.TEST').html( active )[/b]
>
> At present I keeping getting undefined errors and I can't figure out
> why.
>
> Would appreciate any help!
>
> Chris
>

Reply via email to