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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:51:23+00:00 2026-06-15T16:51:23+00:00

I am working on creating a simple application in php and javascript. One thing

  • 0

I am working on creating a simple application in php and javascript. One thing I would like to do is use the jquery spinner control for a very large number of input fields (over 100).

the website can be found here: https://www.myweb.ttu.edu/timothsm/alchemy

right now the script is timing out trying to create 100 spinners in the javascript is there a better way to do this? or should i find a different way? (I am only creating a spinner on the first input field for now but the code below is what i was using to do it to all input fields)

here is the code I am using to create the spinners:

$(function() {
    $("#ings input.spinner").spinner({
        spin : function(event, ui) {
            if (ui.value > 500) {
                $(this).spinner("value", 500);
                return false;
            } else if (ui.value < 0) {
                $(this).spinner("value", 0);
                return false;
            }
        }
    });
    $("input.spinner").val(0)
});
  • 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-15T16:51:24+00:00Added an answer on June 15, 2026 at 4:51 pm

    You can create spinner on demand. Demo

    var makeSpinner = function() {
        $("#ings").find(".ui-spinner-input").spinner('destroy'); //kill prev if any
        $(this).spinner({ //init new
            min: 0,
            max: 500
        });
    }
    
    //process clicks on spinners place holders
    $("#ings").on('click', 'input.spinner', makeSpinner);  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a very simple quiz application with jQuery. How it works is
I'm working on creating a simple website for an exhibition. It's intended to use
I'm working on creating a self updating application and one issue I'm running into
So I am creating a small online quiz application with jQuery and PHP ...
I'm working on creating a simple MCV application, in order to understand MVC better.
I'm working on a simple AJAX chat add-on for my PHP application so I
I'm working on a simple C application and i had the idea of creating
I'm creating a simple application, first time working with SQLite. I want a regular
I'm working with SDL and OpenGL, creating a fairly simple application. I created a
Something I'm running into working on a very simple application that's part of a

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.