I have an HTML page that looks like this: <html> <head></head> <body> <script type="text/fbml"> <div id="test">some test</div> </script> </body> </html>
Now I have the will to access to the text inside test div but the code $('#test').text(); doesn't work, matter of fact nothing is returned. If my div is dragged outside of script tag, js code return me "some test" correctly, but alas, div MUST be inside script. How can I solve my problem???