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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:05:35+00:00 2026-05-29T23:05:35+00:00

I have an example here . Basically i have a scroll bar that is

  • 0

I have an example here.

Basically i have a scroll bar that is always present, even if it is not currently needed.
Problem: I want a scroll bar to appear if the height of my div exceeds 300 pix.

<fieldset id="typography">
<ul>
    <li><label for="Poll Question">Header</label></li>
    <li><input type="text" id="formheader" value="Header"></input></li>
     <div class="scroll">           
        <li><label>Answers</label></li>
        <li id="formanswer1" class="clonedInput"><input type="text" id="formanswer1" value="" /></li>
        <li id="formanswer2" class="clonedInput"><input type="text" id="formanswer2" value="" /></li>
        <li id="formanswer3" class="clonedInput"><input type="text" id="formanswer3" value="" /></li>
    </div>      
    <li><input type="button" id="btnAdd" value="Add Answer" />
    <input type="button" id="btnDel" value="Remove Answer" /></li>
</ul>

I would appriciate any help. i know i need to use JS but im not even sure where to begin.

Question 2: Is there a easy command that i can use that when i push the add button it scrolls to the very bottom of the scroller?

  • 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-29T23:05:38+00:00Added an answer on May 29, 2026 at 11:05 pm

    In your CSS just set the height rather than max-height and set overflow : auto, as per this update to your demo: http://jsfiddle.net/nnnnnn/83659/4/

    div.scroll {
      background-color:#00FFFF;
      width:190px;
      height:90px;
      overflow:auto;
    }
    

    Question 2: if you call .focus() on your newly added input it should bring it into view and put the cursor into the field: http://jsfiddle.net/nnnnnn/83659/4/

    Alternatively you can use the (non-jQuery) .scrollIntoView() function to scroll the element into view without giving it focus.

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

Sidebar

Related Questions

I currently have a csv file that I'm parsing with an example from here:
Simple problem, though apparently not a simple solution. Example here: http://myhideout.eu/new/ Basically the site
Basically I want to have that middle blue body part scroll minus the scrollbar
I have developed a small server that recives connections (using basically the example here:
Here's the problem. I ,for example,have a string 2500.Its converted from byte array into
So basically here is the thing that I want to know. I'm working on
Basically, I want to have an app with only one view that has an
I have a fairly infrequent problem occuring with source control. In the example here
This is often situation, but here is latest example: Companies have various contact data
I have an interface - here's a nicely contrived version as an example: public

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.