Whether or not this should be done, I don't know. It modifies the way
the user gets the title (much more subtle/hidden the second way).

How to do this ?

$('div.box').each(function(){
   this.title = $(this).find('h3').remove().attr('title') || '';
});

--
Ariel Flesler
http://flesler.blogspot.com/

On Aug 21, 6:36 pm, Rob <[EMAIL PROTECTED]> wrote:
> I'm very new to jquery and I'm finding that I'm flooding myself with
> ideas of how to use it!  Good stuff.
>
> I have this repeating pattern on my site:
>
> <div class="box">
>    <h3>Some Neat Title</h3>
>    <div class="boxContent">
>       Some neat content...
>    </div>
> </div>
>
> What I think would be cool is to change that to the below and just put
> some script in my site's startup script that looks for all divs with
> the class "box" and modifies them so the ending result is like the
> above.
>
> <div class="box" title="Some Neat Title">
>    <p>Some neat content</p>
> </div>
>
> What do you think?
>
> Thanks in advance,
> Rob

Reply via email to