Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find code for Getting Value
Message
Information générale
Forum:
Javascript
Catégorie:
JQuery
Divers
Thread ID:
01673118
Message ID:
01673133
Vues:
47
The native HTML spinner does not really work on a mobile device (e.g. in safari browser). I need a spinner that will work as a spinner on a mobile device.
I don't know if Bootstrap has one that would look good. At least the jQueryUI spinner look half-decent in the browser.

UPDATE. As far as what you said that spinners are bad UI. IMHO the spinner that allows you to enter a value, as well as select one by spinning, is the best. If you look at a native iOS app (and I have one for my product), the numbers are entered using a spinner. I am trying to emulate this behavior in the web app.

>A few things.
>
>jQueryUI? That's really old (and very large and intrusive) tech that was never very good to begin with and hasn't been updated much in recent times, so I would highly recommend you don't go that route today. You were balking at using Bootstrap, but you would add jQuery UI?
>
>Spinners are native to HTML now. You can use:
>
>
><input type="number" value="10" /> 
>
>
>and get basic spinner/up/down support without a special library.
>
>Input type number MDN Docs
>
>Plus spinners are terrible UI IMHO. Do you ever actually use a spinner on numeric input? Most people just type a number which is always faster than clicking a button a million times to slow tick up a value.
>
>To get the value use `$("#idOfInputBox").val();` when using jQuery.
>
>+++ Rick ---
>
>>Hi,
>>
>>I am "working/reviewing" the jQuery sample page of a spinner. The page url is this:
>>https://jqueryui.com/spinner/#decimal
>>
>>When you click on Get Value button, the value shows. I am trying to find (by viewing the source) how the author of this page actually gets and displays the value. I can't find it.
>>
>>Anyone who is familiar with Javascript and/or jQuery see that?
>>
>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform