[jQuery] Problem with filtering out/changing specific elements

[jQuery] Problem with filtering out/changing specific elements


Hi,
Ok, here's what I want to do. Let's say this is my html:
<div id="item1">
<div class="title">Title 1</div>
<div class="desc">Desc 1</div>
<div class="msgfooter">Message Footer 1</div>
</div>
<div id="item2">
<div class="title">Title 2</div>
<div class="desc">Desc 2</div>
<div class="msgfooter">Message Footer 2</div>
</div>
...
And this is what I need in a variable:
<h1>Title 1</h1>

Desc 1


<h1>Title 2</h1>

Desc 2


...
What's the best way to do this? Without jQuery I would use regular
expressions and lots of code, but something tells me that there's a simpler
solution to this with jQuery. I tryd the filter function but I just can't
get it to do what I want.
Can someone help me out on this one?
Fredi
--
View this message in context: http://www.nabble.com/Problem-with-filtering-out-changing-specific-elements-tf2679820.html#a7474322
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/