Seeking Up/Down Arrows HTML numerical input feature specifically designed for iOS devices

I am having an issue with a number input box on iOS. I am utilizing jquery, kendo mobile, and HTML5 for this particular task.

While the number input displays up and down arrows in the Icenium simulator, they are not showing on the iPad. I am seeking a solution to make these arrows appear on the iPad as well. Despite my research efforts, I have not been able to find a direct answer.

My main question is: Is it feasible to have these arrows displayed for a number input on the iPad (e.g. for quantity)? If not, are there alternative methods to create a similar functionality using kendo mobile, HTML, or CSS? Any suggestions would be greatly appreciated.

Here is a visual representation of what I am looking for

<input type="number" value="numberText"/>
<style>    
input[type=number]
    {
        padding:10px;
    }
</style>

Thank you

Answer №1

attempt:

<!DOCTYPE html>
<html lang="en">
    <script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'></script>
    <style>
        .number-wrapper {
            margin: 10px 5px;
            position: relative;
        }
        .number {
            font-size: 30px;
            color: #eee;
            display: inline-block;
            *display: inline;
            *zoom: 1;
            background: #000;
            -moz-background-clip: padding;
            -webkit-background-clip: padding-box;
            background-clip: padding-box;
            padding: 0 12px;
            height: 80px;
            line-height: 80px;
            text-align: center;
            border: 1px solid #555;
            -moz-box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.2);
            -webkit-box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.2);
            box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.2);
            -moz-text-shadow: 0 3px 3px #000000;
            -webkit-text-shadow: 0 3px 3px #000000;
            text-shadow: 0 3px 3px #000000;
        }
        .inc {
            position: absolute;
            display: block;
            top: -35px;
            left: 0;
            font-weight: bold;
            font-size: 18px;
            color: #777;
            width: 100%;
            height: 90%;
            text-align: center;
            padding-top: 6px;
        }
        .dec {
            position: absolute;
            display: block;
            bottom: -18px;
            left: 0;
            padding-top: 14px;
            font-weight: bold;
            font-size: 18px;
            color: #777;
            width: 100%;
            height: 90%;
            text-align: center;
        }
        .line {
            position: absolute;
            width: 100%;
            height: 1px;
            top: 52%;
            left: 0;
            background: #000;
            -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
            -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
        }
    </style>
    <body>
        <div id="SETtime">
            <span class="number-wrapper"><div class="line"></div><span class="inc">+</span><span id="mx" class="number m">00</span><span class="dec">-</span></span>
        </div>
    </body>
    <script>
        function twodigits(num) {
            return ('0' + num).slice(-2);
        }

        $('.inc').click(function() {
            var target = $(this).siblings('.number').first();
            var value = parseInt(target.text());
            value++;
            target.text(twodigits(value));
        });

        $('.dec').click(function() {
            var target = $(this).siblings('.number').first();
            var value = parseInt(target.text());
            value--;
            target.text(twodigits(value));
        });
    </script>
</html>

Sunshine-filled moments!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Implementing a delay between two div elements using jQuery

I have two Divs with the class "sliced", each containing three images with the class "tile". When I animate using jQuery, I am unable to add a delay between the "sliced" classes. However, I have successfully added a delay between the "tile" classes. index ...

How do I initiate PUT and DELETE requests from my HTML code?

I am currently in the process of developing a web application that will manage items within a list. Previously, I used buttons with event listeners and JavaScript functions to handle editing and deleting items. However, I am now transitioning towards build ...

Is it possible to line up two divs perfectly?

Hey there, I'm still trying to get the hang of CSS and using Dreamweaver CS6's fluid grid layout. In my attempt to create a header with two divs inside it - headerleft for an image and headerright for text - I've run into some alignment issu ...

Creating a jQuery variable in version 1.9.1 results in an error, whereas in version 1.8.3 it does not succeed

Recently updated to version 1.9.1 and encountered some technical difficulties. Despite that, everything works fine except for one thing: var $newthumbs = $(' <div id=\"car-7\" class=\"thumbnail_car thumbnail span2&bso ...

Troubleshooting a problem with scrolling functionality while keeping the header in place and ensuring the correct tab is highlighted

I've successfully created a page with a fixed menu that appears when scrolling, and the tabs activate based on their corresponding section IDs. However, I'm encountering some issues: The scrolling behavior is not precise; when scrolling to sec ...

Customizing the appearance of columns in an antd table

Below is the table column configuration I am working with, where notes are rendered using a custom function: fieldDefs: (results, isJsonData) => [ { title: 'Notes', name: 'notesHTML', table: { render: SectionNotes, sear ...

Exploring the possibilities of integrating Touch ID in iOS applications for password resets

For my Login screen, I aim to enhance user experience by allowing Touch Id access instead of the traditional Login Id and Password method. Users who are device owners can simply use Touch Id to enter the app after the initial login screen. However, a conc ...

Dealing with Memory Problems While Duplicating Sections of an iOS UIImage

I'm currently developing an app that involves copying sections of an image to different parts of the same image. While the copying logic is working correctly, I've hit a roadblock when attempting to implement an undo feature. My current solution ...

Utilizing nested classes in CSS or SCSS for calling a class within another class

I am having trouble calling a class within another class. Can someone help me figure out how to do it? Here is the HTML code: <div class="main">Content</div> <div class="cover">Cover content</div> And here is t ...

Obtaining a single element from a hidden display while dragging using Jquery UI

Is there a way to move an element outside of a container with overflow hidden when using drag and drop functionality in CSS? Currently, when I drag an element with the "item" class, it stays within the confines of the container with overflow set to hidden. ...

Implement the color codes specified in the AngularJS file into the SASS file

Once the user logs in, I retrieve a color code that is stored in localstorage and use it throughout the application. However, the challenge lies in replacing this color code in the SASS file. $Primary-color:#491e6a; $Secondary-color:#e5673a; $button-color ...

Seeking assistance with changing the pages

Looking for assistance with troubleshooting my function. All variables are accounted for. var swith = document.getElementById("sub"); var one = document.getElementById("rule"); var two = document.getElementById("cool"); var three = document.getElementByI ...

Is your Jquery validation malfunctioning?

I am currently facing a challenge with required validation on an asp.net page. In order to validate the inputs, I have implemented multiple controls which can be hidden or displayed based on certain conditions. These controls include checkboxlists, dropdow ...

The conditional CSS appears to be malfunctioning

Hi, I am attempting to use conditional CSS in my stylesheet to set a different width for IE6. I have tried the following code but it is not working: div.box { width: 400px; [if IE 6] width: 600px; padding: 0 100px; } How can I su ...

Steps for fully deactivating a mui/material Checkbox

Can someone help me with the issue I'm having regarding a Checkbox component from @mui/material? Here's the code snippet: <Checkbox color="primary" checked={isItemSelected} ...

Attempting to execute code on a database using PHP and MySQL

Hey there! I am just diving into the world of HTML and PHP, attempting to create a page that can execute an SQL query to transfer data from one table to another. However, I'm facing some difficulties in making it work as I need a user-provided date t ...

Unable to modify the border radius of the carousel indicators in Bootstrap 5

Currently, I am working with the carousel component in Bootstrap 5.1. I have encountered an issue where I am unable to add border-radius to the carousel indicators, despite trying various methods. Even though the inspector shows that the indicators (HTML ...

When I expand one panel, I want to automatically close any other opened panel to ensure only one section is expanded at a

I'm experiencing an issue with the Bootstrap 4 accordion. Currently, when I open a collapsed section in the accordion, it remains open even when I click on another collapsed section. What I actually want is for the previously opened section to close ...

SVG embedded directly into CSS is compatible with Chrome and Edge browsers, but unfortunately does not render correctly in Firefox

I'm having an issue with my code that displays icons. The GitHub icon isn't showing up on Firefox, but it works fine on Chrome and Edge. Surprisingly, the Google icon is working across all browsers! .github-icon { background-image: url("data ...

The 'slide.bs.carousel' event in Bootstrap carousel is triggered just once

Take a look at my JavaScript code: $('#carousel-container').bind("slide.bs.carousel", function () { //reset the slideImg $('.slideImg',this).css('min-height', ''); //set the height of the slider var ...