You'd probably want to use the text() or html() method for this.
Assuming the <h2> tags in question are inside the child-pages div,
your code would be something like this:

$(function(){

      $('.child-pages h2').text("Sub-pages");
});


On Oct 12, 9:56 am, Fynci <fyncimy...@gmail.com> wrote:
> I am very very new to Jquery, being more of a designer than a
> programmer. I have a fairly (I believe) simple issue, that I'm hoping
> you will be able to assist with.
>
> I have a div class called "child-pages", that calls up some text in
> <h2> tags, which says "Children Pages". I am wanting to use a simple
> Jquery script to change "Children Pages" to "Sub-pages".
>
> How do I go about implementing a script that will make this change?
>
> Many thanks!

Reply via email to