Im trying to check if my facebook page plugin has a certain class, but i cant get it to work.
The reason for this is that i whould like to show facebook page plugin only if you have not liked our company page before or if you a not logged in to facebook when you visit our website.
My code that dosent work
if($(".pluginConnectButtonDisconnected").hasClass("hidden_elem")){
console.log('has hidden class');
} else {
console.log('has no hidden class');
}
As you can see in below code the a element has class of hidden_elem but i cant get to return true allways false..? Please help :)
Below code is the page plugin code.
If check to see if the class of pluginConnectButtonDisconnected exsist it returs undefined even so i can see the plugin in front of med and i use the firebug console. Could it be that facebook dosent let you look into there code with jquery or something. Please help :)
Best regards.