Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7415871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:23:02+00:00 2026-05-29T07:23:02+00:00

I am using the jqueryrotate plugin and it works if I want to rotate

  • 0

I am using the jqueryrotate plugin and it works if I want to rotate the content of the parent id, but I want to rotate a span that is a child of the id. I am not finding the right syntax to target the span.

$(".faqq").click(function(){
        var showthis = "#" + this.id + "a";

            /* .plus is the class name of the span I am trying to target */
        var rotatethis = "#" + this.id + " .plus";

        $(showthis).slideToggle('fast');
        $(rotatethis).rotate({
            angle: 0, 
            animateTo:225
          })
    });

Can someone see what I am doing wrong? Thanks!

EDIT: HTML Example:

<p id="faqq1" class="faqq">
            <strong>Q. Where is my order? <span class="plus">+</span></strong>
        </p>
<p id="faqq1a" class="faqa">
            A. You can ...what we know.
        </p>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:23:03+00:00Added an answer on May 29, 2026 at 7:23 am

    Make sure your .plus has positioning that allows its position to be set.

    $(rotatethis)
              .css('position','relative')
              .rotate({
                angle: 0, 
                animateTo:225
              });
    

    You’d probably want to do this in CSS instead of with jQuery’s .css().


    Side note, but I’d replace this…

    var rotatethis = "#" + this.id + " .plus";
    $(rotatethis)
    

    with this…

    $(this).find('.plus')
    

    EDIT:

    Instead of position: relative, the issue was that display: block was needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Yii, I want to delete all the rows that are not from today.
I'm new to programming. Right now I'm using jQuery + jqueryrotate to rotate my
I'm using the Jquery plugin, Rotate v2.2. http://code.google.com/p/jqueryrotate/ In IE7 I see the following
Using jQuery rotate http://code.google.com/p/jqueryrotate/wiki/Examples to animate an object from 0 degrees to 40 degrees
How do you rotate an image using jQuery-rotate plugin? I have tried the following
I am trying to rotate an image using jquery that will rotate on multiple
Currently I am using jquery rotate plugin to rotate a image on the page,
Using interface builder, I want an a button that when clicked shows you a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C#, I want to show the image in the Access column but failed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.