All Questions
Tagged with numeric javascript
104 questions
-1
votes
1
answer
58
views
Can't get value of numeric input if input is greater then 0
<input type="number" placeholder="Number of people*" class="user_number" min="1" max="5">
let user_number = document.getElementsByClassName(&...
3
votes
4
answers
5k
views
How to disable mouse wheel scrolling over a type "number" input in React?
I'm using MUI type="number" textfields, but when I focus it and then scroll the mousewheel, the value of the input changes. I've read about adding blur after scroll, but I don't want to blur ...
2
votes
0
answers
433
views
JavaScript: Sort a string that contains letters and numbers in a case-sensitive manner using Intl.Collator
With the requirement that I need to use the Intl.Collator (English language only) to sort strings that contains both letters and numbers (anywhere in the string). I need to have them sorted such that:
...
2
votes
3
answers
71
views
Advice on how to resolve an issue with extracting only numbers from a string using JavaScript
I'm new to stackoverflow and would appreciate some advice to help me solve this problem.
I have two strings that I want to extract numbers from
String 1 = "12.3,Name1,3,4,Name2,35,Name3" ...
0
votes
2
answers
118
views
How to sort arrays numerically and alphabetically at the same time in JavaScript in this code, please [closed]
I'm trying so hard to sort these arrays numerically and alphabetically, except that it only sorts them based on their length only (especially numbers).
Please help...
Tips: Open in IDE and click on ...
0
votes
1
answer
252
views
AutoNumeric Multiple - Append Rows With TextBox On Click Add Button
I'm having an issue with http://autonumeric.org/ plugin.
When click on add button, it will append a row with some input fields. those fields are integer and decimal fields.
once row has appended it ...
0
votes
1
answer
481
views
How can I change the keyboard to numeric for a webview Android?
Tried using -
view?.evaluateJavascript("document.getElementById('otpValue').type = 'number';",null)
But, only entries changed to number and keyboard didn't
1
vote
1
answer
439
views
How can I make only numbers can be written in the box? Limit is 6 digits
How can I make only numbers can be written in the box? Limit is 6 digits.
<?php
$barcode_name = "Seal Number:";
$barname = "placeholder=\"Scan the Serial Number\"";
?&...
0
votes
1
answer
247
views
Make An identifier or keyword follow a numeric identifier react - rapid api
I try to use the coinranking api from rapid api but i get a error when a i went to display the 24h volume of a cryptocurrency.
the data is display like this:
Object
data:
coin:
...
0
votes
2
answers
5k
views
Add thousand separator with javascript when add input dynamically
I have problem when adding input dynamically with thousand separator,
when I click add and the input form appears.
it should be when I type the number it will be arranged in thousand separator.
Please ...
0
votes
2
answers
1k
views
Javascript, sorting a numerical array above greater than zero
Please can anyone help me. I am able to sort an array into either ascending or descending order but I want to be able to sort the array above a numeric value.
For example if I have an array:
a0 = new ...
0
votes
2
answers
1k
views
shortcut symbol for converting toString [duplicate]
As you know, if I want to the get numeric value of a variable (e.g. $event) I'd do:
<ax-text-box (valueChange)='documentSearchItem.fromPrice=(+$event)'></ax-text-box>
I add a + to do ...
1
vote
1
answer
174
views
Retrieving numeric value from array and adding itself
I seem to be struggling with getting this "financial tracker" to work. It's supposed to take all of a class's value ($0.00 +) and add it together. The list can grow by creating more '.cost' ...
1
vote
1
answer
668
views
Java script table sorting numeric values
Script giving wrong result for numeric values, how can I fix it to work for both numeric and alphabet?
Here is the javascript I used
function sortTableByColumn(table, column, asc = true) {
...
0
votes
2
answers
1k
views
How to generate unique 8 digit Organization ID in MongoDB?
I am working on creating Customer Relationship Management system. I need to create an eight digit numeric, unique ID for a particular client. How can achieve that in Java Script with Mongo DB?