Does this work as expected if you try it in a vanilla HTML file? (using jquery directly)
So, I tried it and I could see the jquery library that I was using doesn't work at Internet Explorer 8, only at 9 or above. I replaced the library for jquery-1.10.1.js and that worked.
I did like you said, I tried with a HTML file.
Thank you for answer!