Re: [jQuery] Remove element, keep children

2010-01-14 Thread Gus Waddell
Hi Zoe, One way to do this is use .appendBefore() to move the children up one level in the DOM before the element you want to remove & then do the .remove() -- #parent { background-color: red; } Remove div id=parent This is the wrapper element Item 1Item 2 Another Child

Re: [jQuery] Function won't fire on load...

2010-01-14 Thread Gus Waddell
Hi Knal, You need to have the function available before you try and call it. Try putting the $.fn.extend at the top of your script... -- $(document).ready(function(){ $.fn.extend({ initSlides: function() { alert('initSlides'); var t = $(this).attr( "id" ) $( "#" + t + " img" ).h