[jQuery] Solved: Re: Why does 'attr' work with 'divs' and not 'p's'?

2009-11-10 Thread dorich
Thanks for the response. I pasted the wrong code, they were consistent in the original. mea culpa! However, this is solved. I had created a conflict with classes somewhere else in the html and that was the source of the problem. On Nov 10, 12:12 pm, D A wrote: > > jquery > > var originalTitle=$("

[jQuery] Why does 'attr' work with 'divs' and not 'p's'?

2009-11-10 Thread dorich
Using the following code jquery var originalTitle=$("a.basic").attr("title"); $("div.area1").text(originalTitle); html This is where the original title should go I get the expected title attribute written into the 'div'. However, if I swap the 'div' for a 'p' the resul