JQuery attr() fails to set attribute?

Working fine here (with jQuery 1.6.2): jsfiddle.net/niklasvh/k3Grd.

Working fine here (with jQuery 1.6.2): URL1 Make sure to call it once the DOM is ready: $(function(){ $('#trns'). Attr('transform', 'rotate(60,50,50)'); }).

1 The problem was the version of jQuery I was using (1.3.2), once changed it to 1.6.2, it worked. – Majid Fouladpour Jul 2 at 10:23 1 So why is this the right answer? – Edgar Villegas Alvarado Jul 2 at 11:04 @Edgar - Speaking strictly, it isn't.

But, this, and your answer, led me to checking the version which was the issue. I then upvoted yours, and accepted this one ;) – Majid Fouladpour Jul 2 at 11:19 @Majid You can always post the answer yourself, then accept it. – lonesomeday Jul 2 at 11:22 @lonesomeday - I know, though I am reluctant to.

And in this case, I think a working jsfiddle is the answer. – Majid Fouladpour Jul 2 at 11:29.

Very strange indeed, this seems to work $('#trns')0. SetAttribute('transform','rotate(20,50,50)') Also, if you look at $('#trns'). Attr('transform'), you are getting an object.. Not enough time to look into that now.

That indeed is strange, apparently attr() in 1.6.2 is sophisticated enough to manipulate the object in the right way. But with 1.3.2, which I used originally, it does not work. – Majid Fouladpour Jul 2 at 10:35.

If you're using jquery >= 1.6 try using prop instead of attr. Hope this helps. Cheers.

– Niklas Jul 2 at 10:15 Will try that in a minute; thanks. – Majid Fouladpour Jul 2 at 10:16.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions