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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:02:45+00:00 2026-05-27T17:02:45+00:00

Hi all using JQuery to hide the overflow of list items and it’s working

  • 0

Hi all using JQuery to hide the overflow of list items and it’s working well but the items I displaying in rows of 2 instead of all in the same row.

Anyone know why it might be doing this?

Here is the full source code:

<!DOCTYPE html> 
<html> 
    <head> 
    <title>Page Title</title> 

    <meta name="viewport" content="width=device-width, initial-scale=1"> 

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head> 
<body> 

<div data-role="page">

    <div data-role="header">
        <h1>Page Title</h1>
    </div><!-- /header -->

    <div data-role="content">   
        <p>Page content goes here.</p>      
    </div><!-- /content -->

    <div data-role="footer">
        <div data-role="navbar">
            <ul class="footeritems">
                <li><a href="#" data-icon="grid" data-iconpos="top">One</a></li>
                <li><a href="#" data-icon="grid" data-iconpos="top">Two</a></li>
                <li><a href="#" data-icon="grid" data-iconpos="top">Three</a></li>
                <li><a href="#" data-icon="grid" data-iconpos="top">Four</a></li>
                <li><a href="#" data-icon="grid" data-iconpos="top">Five</a></li>
                <li><a href="#" data-icon="grid" data-iconpos="top">Six</a></li>
                <li><a href="#" data-icon="grid" data-iconpos="top">Seven</a></li>
            </ul>
        </div>

    </div><!-- /footer -->
</div><!-- /page -->


<script>
$(document).ready(function() {
     $("ul.footeritems li:gt(3)").remove();
     $("ul.footeritems").listview('refresh');

});
</script>
</body>
</html>
  • 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-27T17:02:47+00:00Added an answer on May 27, 2026 at 5:02 pm

    this is because jquery mobile css supports footer navbar to have a maximum of five list items in a row. if there are more items it breaks it into further lines. remove any one list item and it will come in a single row

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

Sidebar

Related Questions

Using jQuery, how do I delete all rows in a table except the first?
is there a way to unselect all items of a listbox using jquery without
I'm using rails, but doing all my Javascript unobtrusively using jQuery in application.js .
I'm using some jquery to hide list elements when a page is loaded. When
I want to be able to show/hide the rows in a table using jquery.
How to hide all elements except one div and its child element using jquery?
all I want to show hide some ids using jQuery. My html code is
I would like to print the selected values of all selects using jQuery. I
Using jQuery, is there a way to select all tag that reference a specific
Is it possible using jQuery to select all <a> links which href ends with

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.