I have the following javascript code.
var Test = function(){
$("#"+elementId).click(function(){
// How to call Test.callbackTest here?
});
}
Test.prototype.callbackTest = function(){
//code
}
If I want to call callbackTest() in clicking event, do I have to use this.callbackTest()?
or is there any better ways?
You can make
callbackTestprivate:Otherwise it should be