Interesting. Sorry I couldn’t help.
Is your code inside the loop?
I don’t think get_the_content returns the info. I think the_content does. If you use get_the_content you need to store it in a variable or something.
Try replacing ‘$’ with ‘jQuery’. I think wordpress reserves $ for something else.