Posts by eden • 461 points
12 posts
-
0
votes2
answers283
viewsQ: Concatenation of items from a nested loop array
I would like to pick up the items in var a, a Bi-dimensional Array, and make an iteration in a nested loop, concatenating everything in order to place them between brackets, separated by a bar, as…
-
1
votes2
answers257
viewsQ: Separate the contents of a variable via Regex
In 2 variables I want to perform the following operations. In the 1st, var chat1, separate via regex 4 information: "To:", "How are you?", "B:" and "I’m fine, Thanks.", and be able to access them by…
-
2
votes2
answers293
viewsQ: Get a single TRUE or FALSE on multiple conditions
I would like to perform the following in the variable img right below: Get true if ALL images (tag img) are EQUAL, or false IF ONE OR MORE DIFFERENT of the others. I tried loop for, but it does not…
javascriptasked eden 461 -
10
votes2
answers1689
viewsQ: Find <tr> Element of a certain content
I would like to know how to find a certain element <tr> in a numbered table. For example: In a table where each row <tr> has its cells <td> numbered 1-5, containing 4 lines…
-
2
votes1
answer721
viewsQ: Highlight day and week in Calendar
Like highlight (stylize) the day of the month and the week? The function below was the simplest I could get on the Web that allows me to understand at least part of the code. I need to know 1) how…
javascriptasked eden 461 -
1
votes2
answers481
viewsQ: Separate <script> tag by semicolon
I have a variable you can store plain text and the tags <script> and <img>, delimited by (';'). To separate the information, I use the method split(';'). Works well for texts and…
-
2
votes1
answer231
viewsQ: Delete letters before after a number
Hello, I have a string (var test), and would like to perform some operations on it. The desired result is a number, preceded by or of the letter p, s, or ps (NAY sp) (ex: ps1), and a number followed…
-
0
votes1
answer105
viewsQ: Get multiple IDS, but perform different operations on each of them
I have a function that gets multiple ids at once, but I have to perform slightly different operations in each of them, because of this I end up being forced to create 3 variables for each different…
javascriptasked eden 461 -
9
votes6
answers8412
viewsQ: Function that enumerates letters of the alphabet
How to convert alphabet letters into one array of numbers according to its sequence? The array should start from paragraph 1, not zero. So the letter A valeria 1, B valeria 2, C valeria 3, and so…
-
2
votes2
answers469
viewsQ: Replace all after first white space
I have a variable that can store compound words, as in the example below. I would like help with the method replace() in order to replace all after the 1st (first) white space, does not matter its…
javascriptasked eden 461 -
1
votes1
answer132
viewsQ: Replace occurrences arbitrarily in Javascript
I’m using the method replace() in order to highlight certain words in a sentence. The method replaces only the first occurrence of the target word by default. I’d like to know how make arbitrary…
-
3
votes2
answers280
viewsQ: Regular expression matching only 1-digit numbers, and nothing else
I have a variable that can store several values (words, letters, numbers, etc.), depending on an input field. I would like to do a search that relates only 1 digit numbers (/ b d{1} b/), and any…
javascriptasked eden 461