Posts by user130157 • 11 points
2 posts
-
1
votes1
answer898
viewsA: When selecting a select item, change the input field
Put a eventListener in your select, disable irrelevant inputs and hide them. You can save information to help you search for the attribute dataof HTML $('#TipoDocumento').change(function(e) { let…
-
0
votes3
answers187
viewsA: Traverse an array and insert values in the middle of it
I believe regular expression is the best way to format your string. let meuNum = 11223655871; let numFormatdo = `${meuNum}`.replace(/([13579])([13579])/g, '$1#$2') .replace(/([02468])([02468])/g,…
javascriptanswered user130157 11