The general problem I am facing is confused with what $ (this) means.
I often try to give it an odd style:
$(this).css("border","10px solid red")
Sometimes it helps.
However, I am puzzled by the following. My question can be answered in two ways:
1) Is there a universal way to βseeβ what $ (this) refers to in this task? Perhaps in combination with firebug?
2), in particular, any idea for which $ (this) should be used in this example? I assumed that this would be an input with the btnSave class, but did not seem to be:
$(ajaxContainer).find("input.btnSave").click(function(){
savePanel();
});
function savePanel() {
$(this).css("border","10px solid red");
};
source
share