var contactForm = {
container: $('#contact'),
show: function(){
contactForm.container.show();
},
close: function() {
$('<span class=close>X</span'>)
.prepandTo(this); //#contact
}
};
For some reason 'this' in the function 'close' refers to contactForm.container. How come it refers to the variable if it supposed to refer to object contactForm? O_o
Thanks!

New Topic/Question
Reply


MultiQuote



|