JQuery removeClass(), how it works?

When you view the code in the browser, you see the original code sent by the server. You should see an instance of the DOM to verify that the class is there. You can do that easily in Firefox with Firebug.

When you view the code in the browser, you see the original code sent by the server. You should see an instance of the DOM to verify that the class is there. You can do that easily in Firefox with Firebug.

Unless you have reloaded the page, the new query shouldn't match the images that the imageloading class was removed. Check also that the code that runs the removeClass method operates as expected. Firebug is a great tool to test such behaviour.

That's right, you'll see the original code without manipulation. Some browsers even do the http request again to fetch the source code. As suggested, use Firefox with the firebug extension to see what's happening to the DOM on runtime.Getfirebug.Com – Tim Büthe Jun 16 '10 at 8:42 OK, even when I don't see the changes, probably I'd have never seen, but the problem is that after the class removing nevertheless all images are returned.

– Centro Jun 16 '10 at 8:48 Debug the script with Firebug to solve the problem yourself or post full source here to get some help. – kgiannakakis Jun 16 '10 at 8:50 I'm still trying to solve the problem by debugging. Also, I updated the post by adding more details on source.

– Centro Jun 16 '10 at 11:22.

Try . RemoveClass('imageLoading'); in place of . RemoveClass('imageloading').

WTF +1 but this one is not the issue... ;) – Reigel Jun 16 '10 at 8:39 css is case sensitive – Samuel De Backer Jun 16 '10 at 8:45 That's not the point, it's just a mistype. I'll edit it. – Centro Jun 16 '10 at 8:50.

Inspect using a debugging utility like firebug and observe the result. Changes that you make to the DOM using javascript won't be reflected in page source.

Answer: YES with firebug in firefox, or web dev tools in google chrome, you can see the changes... but not the original code changes...

I'm sorry about much ado about nothing. I've just incorrectly passed the jQuery object into the subroutine: removeImageLoadingClasses(this) instead of removeImageLoadingClasses($(this)) So it's okay now.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions