KevySaysBeNice
[H]ard|Gawd
- Joined
- Dec 7, 2001
- Messages
- 1,452
I know this will seem really stupid/trivial, but I have NEVER used prototype (JS library) and I am working on a site that is using prototype so I figured I might as well use it to try to solve this (simple) problem and learn something.
It's so simple. I have this:
<h3>Some Text Here</h3>
and I want to be able to get "Some Text Here" out.
I think I can do something like
var h3tag = $$('h3');
But I'm not sure how to actually get the text out of that?
I thought I could do something like
h3tag = $$('h3');
alert(h3tag.text);
But that doesn't seem to do it.
Any help would be very very much appreciated <3
It's so simple. I have this:
<h3>Some Text Here</h3>
and I want to be able to get "Some Text Here" out.
I think I can do something like
var h3tag = $$('h3');
But I'm not sure how to actually get the text out of that?
I thought I could do something like
h3tag = $$('h3');
alert(h3tag.text);
But that doesn't seem to do it.
Any help would be very very much appreciated <3