I need to know the content of a class by using js. for example :-
<p style='visibility:hidden'>hello !</p>
if we wrote
alert(document.getElementsByTagName('P')[0].style.visibility)
it will returns "hidden"
, BUT if we wrote
<p class='peter'>hello !</p>
<style>.peter{visibility:hidden}</style>
it will returns ""
. !!!!