Re: Re[jQuery] move appended element

2009-11-28 Thread coldwired
that makes more sense. brian ally-3 wrote: > > On Sat, Nov 28, 2009 at 2:11 PM, coldwired wrote: >> >> The reason is because I need the exact clone of the highlighted tags >> before >> the selected class is supplied to it. > > Sorry, that doesn't answer

Re: Re[jQuery] move appended element

2009-11-28 Thread coldwired
> I suppose you could use removeAttr('class'). But I wonder why this is > a problem, in any case. Why is the class="" giving you problems? > > On Sat, Nov 28, 2009 at 8:13 AM, coldwired wrote: >> >> Hi, >> >> The tag is removed but a remendant of

Re: Re[jQuery] move appended element

2009-11-28 Thread coldwired
e not removed? > > On Fri, Nov 27, 2009 at 4:39 AM, coldwired wrote: >> >> Hi, >> >> Sorry, that was a slight typo on my part, it should be class "selected". >> The >> problem I have with just appending using addClass is that when the cla

Re: Re[jQuery] move appended element

2009-11-27 Thread coldwired
class="" rather than a blank that it was before. I need to have the exact quote of the code so I can't have class="". Is there a solution to this? Thanks, Colin. coldwired wrote: > > Hi, > > I'm trying to append an div element around the element that tr

Re[jQuery] move appended element

2009-11-26 Thread coldwired
Hi, I'm trying to append an div element around the element that triggers the on hover event, then remove the div on mouse out (blur). I normally would use addClass / removeClass but this leaves class="" when the class is removed and not the original state of the html. Here's my code, I can't work

Re: [jQuery] Extract tag element and closing tag

2009-11-25 Thread coldwired
Magic, that's exactly what I needed. Cheers! Colin. coldwired wrote: > > Hi, > > I've got the following piece of code that extracts the html code contained > within a clicked element: > > $("p,h1,h2,h3,span,li, dd, dt,b,em,strong").cl

[jQuery] Extract tag element and closing tag

2009-11-25 Thread coldwired
Hi, I've got the following piece of code that extracts the html code contained within a clicked element: $("p,h1,h2,h3,span,li, dd, dt,b,em,strong").click(function() { alert($(this).html()); }); I want to get the containing element from this too, it's open and close tag. For example: te