Click here to Skip to main content
15,920,633 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: How do I a value from one function and pass it through to another for use Pin
Richard Deeming21-Aug-19 8:26
mveRichard Deeming21-Aug-19 8:26 
AnswerRe: How do I a value from one function and pass it through to another for use Pin
ZurdoDev21-Aug-19 5:35
professionalZurdoDev21-Aug-19 5:35 
QuestionComparison's in JavaScript Pin
BobInNJ7-Aug-19 10:57
BobInNJ7-Aug-19 10:57 
AnswerRe: Comparison's in JavaScript Pin
ZurdoDev7-Aug-19 11:10
professionalZurdoDev7-Aug-19 11:10 
AnswerRe: Comparison's in JavaScript Pin
Anandkumar Prajapati19-Sep-19 18:55
professionalAnandkumar Prajapati19-Sep-19 18:55 
QuestionDelete consumer Pin
Member 1453057115-Jul-19 0:09
Member 1453057115-Jul-19 0:09 
AnswerRe: Delete consumer Pin
Richard MacCutchan15-Jul-19 0:42
mveRichard MacCutchan15-Jul-19 0:42 
QuestionRe: Delete consumer Pin
ZurdoDev7-Aug-19 11:08
professionalZurdoDev7-Aug-19 11:08 
QuestionLooking for Bootstrap, TypeScript,Vue and Vue Router Guide to Building a Navigation Bar Pin
Jammer29-Jun-19 2:45
Jammer29-Jun-19 2:45 
AnswerRe: Looking for Bootstrap, TypeScript,Vue and Vue Router Guide to Building a Navigation Bar Pin
Afzaal Ahmad Zeeshan30-Jul-19 5:37
professionalAfzaal Ahmad Zeeshan30-Jul-19 5:37 
Questionhow to open word file in client side Pin
Member 1447396626-Jun-19 1:32
Member 1447396626-Jun-19 1:32 
AnswerRe: how to open word file in client side Pin
Richard MacCutchan26-Jun-19 1:45
mveRichard MacCutchan26-Jun-19 1:45 
Question(SOLVED) How to activate button on mouse press? Pin
samflex6-Jun-19 4:39
samflex6-Jun-19 4:39 
AnswerRe: How to activate button on mouse press? Pin
Richard Deeming6-Jun-19 5:39
mveRichard Deeming6-Jun-19 5:39 
GeneralRe: How to activate button on mouse press? Pin
samflex6-Jun-19 6:24
samflex6-Jun-19 6:24 
GeneralRe: How to activate button on mouse press? Pin
samflex6-Jun-19 7:21
samflex6-Jun-19 7:21 
GeneralRe: How to activate button on mouse press? Pin
Richard Deeming6-Jun-19 8:03
mveRichard Deeming6-Jun-19 8:03 
GeneralRe: How to activate button on mouse press? Pin
samflex6-Jun-19 9:47
samflex6-Jun-19 9:47 
Questionhow to count product codes from textarea? Pin
Veltix26-May-19 4:11
Veltix26-May-19 4:11 
AnswerRe: how to count product codes from textarea? Pin
jkirkerx27-May-19 11:14
professionaljkirkerx27-May-19 11:14 
Your pretty vague in saying what exactly your having trouble with.
I'm not going to write code for you, but think of part numbers as words, gathering each word and then count the occurrence of each word.
This is done all the time, using words like "apple, orange" so you get a count of "apples" and "oranges"
Perhaps search the internet for a JavaScript example of counting words!

Start again from scratch, and write functions to do the following.

So get all the text in the textarea
Gather and count each occurrence of a word and push the words into an array and increment the counter
Then loop the array, and qualify the words as a part number, remove the ones that don't qualify.
Now you have an array or words and the count.
Then do something with the array of words.

Now go back and write event listeners to trigger your main function.
If it ain't broke don't fix it
Discover my world at jkirkerx.com

QuestionBest ReactJS tutorial? Pin
Corey Cananza26-May-19 3:59
Corey Cananza26-May-19 3:59 
AnswerRe: Best ReactJS tutorial? Pin
Katie Webber30-Jul-19 2:06
professionalKatie Webber30-Jul-19 2:06 
AnswerRe: Best ReactJS tutorial? Pin
Harsh.Shah.ifour13-Aug-19 18:13
professionalHarsh.Shah.ifour13-Aug-19 18:13 
AnswerRe: Best ReactJS tutorial? Pin
Le centriste4-Sep-19 3:57
Le centriste4-Sep-19 3:57 
QuestionHow to call function second time? Pin
Tarun Rathore 23-May-19 19:28
Tarun Rathore 23-May-19 19:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.