Div is outside the HTML DOM. After creating the div element you have to append the div into the body.
thanks Rupak On Wed, Sep 9, 2009 at 3:38 PM, Mariano <[email protected]> wrote: > > 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??? >

