[jQuery] I have a question.
Hello.
I have a question.
------
<html>
<head>
<title>test</title>
<script type="text/javascript" src="jQuery.js"></script>
</head>
<body>
<h1>func test</h1>
click me
<script type="text/javascript">
var tst = function(pp){
this.pp = pp;
};
tst.prototype={
pp:null,
aa:function(){
alert(this.pp);
},
bb:function(){
$("p").bind("click",function(){
alert("binded");
this.aa();
});
}
};
var test = new tst('tsttstststts');
test.bb();
</script>
</body>
</html>
------
Where is wrong?
Test.aa() doesn't move though I clicked .
I am Japanese, and I can understand English only a little.
I'm sorry by poor English.
thank you for reading.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/