On Wed, Sep 9, 2009 at 6:08 AM, Mariano mariano.calan...@gmail.com wrote:
script type=text/fbml
div id=testsome test/div
/script
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.
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 mariano.calan...@gmail.com wrote:
I have an HTML page that looks like this:
html
head/head
body
script type=text/fbml
2009/9/9 Mariano mariano.calan...@gmail.com:
I have an HTML page that looks like this:
html
head/head
body
script type=text/fbml
div id=testsome test/div
/script
/body
/html
Now I have the will to access to the text inside test div but the code
Why in the earth must you have a div inside scipt tags?
- Original Message -
From: Nick Fitzsimons n...@nickfitz.co.uk
To: jquery-en@googlegroups.com
Sent: Wednesday, September 09, 2009 6:55 AM
Subject: [jQuery] Re: HTML code inside script tag, how access to it with
DOM???
2009
?
- Original Message -
From: Nick Fitzsimons n...@nickfitz.co.uk
To: jquery-en@googlegroups.com
Sent: Wednesday, September 09, 2009 6:55 AM
Subject: [jQuery] Re: HTML code inside script tag, how access to it with
DOM???
2009/9/9 Mariano mariano.calan...@gmail.com:
I have an HTML
On Sep 10, 9:49 am, Mr Speaker mrspea...@gmail.com wrote:
I think it's perfectly valid to have a div inside a script tag (or at
It is never valid markup in an HTML document, a div element can't be a
child of a script element.
least useful), if a div makes sense to the TYPE you defined for
Hey! No arguing with John Resig around here ;)
But the script tag thing is a templating solution - so the advantage
is obvious: having to maintain a 10kb+ HTML fragment encoded as a
JavaScript variable (or even comprised of jQuery statements) is not
fun.
I'm not a fan of the script
7 matches
Mail list logo