[jQuery] Call object method onclick
function Viewer()
{
};
Viewer.prototype.constructor = Viewer;
Viewer.prototype =
{
getFullAreaId: function() { return this._fullAreaId; },
setFullAreaId: function(fullAreaId) { this._fullAreaId =
fullAreaId; },
initialize: function()
{
$("#thumbs img:first").click(/* execute this.doX on mouse
click */);
},
doX: function()
{
alert(this.getFullAreaId());
}
};
How can I make the click event execute the doX method?
Regards,
FatSlags2004