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 8395987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:25:49+00:00 2026-06-09T20:25:49+00:00

I have created the jQuery Script below, But am having a few problems converting

  • 0

I have created the jQuery Script below, But am having a few problems converting it to preferably only CSS using transitions. If anybody could help me, I’ll be greatfull.

Explanation of the example below:
– When you click on the text box a empty div container drops down, but I am having a few problems with scripting it in just mainly CSS3 Transitions.

HTML:

<div class="div">
    <input type="text" class="textbox" id="textbox"/>
    <p>example</p>
</div>

CSS:

.textbox {width:300px;}
.div { width:300px; background-color:#f8f8f8; }
p {width:300px; height:300px; background-color: #f8f8f8;}

jQuery:

$("#textbox").click(function() {
    $("p").slideToggle();
});

Live demo: jsFiddle

  • 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-06-09T20:25:50+00:00Added an answer on June 9, 2026 at 8:25 pm
    p {
        height: 0;
        overflow: hidden;
        transition: height .3s;
    }
    input:focus + p {
        height: 20px;
    }
    

    Here’s your fiddle: http://jsfiddle.net/58VHE/33/ (click to focus on the input).


    P.S. Don’t forget the vendor prefixes. The fiddle uses -prefix-free to auto-add the vendor prefixes.

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

Sidebar

Related Questions

I have created a dynamic list picker script using Jquery 1.3 and PHP that
I have created a simple JQuery script with hovering effect on some links. The
I'm a jQuery newbie, and I have trouble with a little script I created.
I have Created a simple Jquery Code.. The Code is <script type=text/javascript> $('#Button1').click(function (evt)
I have created a class using an object as well as using Jquery 1.7.2.
I have created HTML TABLE from JSON data of PHP using JQuery. After creating
I have a problem with the below jQuery script: $('span').click(function(){ var info = $(this).attr(rel);
I have a script that allows me to dynamically create lists via jQuery. I'd
I have created jquery image slider and it is working good. However i have
I have created some JQuery that will expand a div 'popup' on hover and

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.