Posts by BamDev • 423 points
12 posts
-
0
votes3
answers953
viewsA: How to simulate the event click on a <select> when hovering over a <div>?
JS pure. <html> <head> <title>Drop on Hover</title> <script type="text/javascript"> function DropList() { var n = document.getElementById("sel").options.length;…
-
18
votes12
answers79762
viewsA: Formatting Brazilian currency in Javascript
Try this function: <script language="javascript"> function moeda(a, e, r, t) { let n = "" , h = j = 0 , u = tamanho2 = 0 , l = ajd2 = "" , o = window.Event ? t.which : t.keyCode; if (13 == o…
javascriptanswered BamDev 423 -
0
votes2
answers174
viewsA: Split() javascript method in an array
I got it this way: // Variável var str = "How are you doing today?"; var res = str.split(" ", 3); console.log(res) // Array var str = ["How are you doing today?"]; for(var i = 0; i < str.length;…
-
-2
votes2
answers174
viewsQ: Split() javascript method in an array
How to achieve the same result of variable down in the array? // Variável var str = "How are you doing today?"; var res = str.split(" ", 3); document.write(res) // Array var str = ["How are you…
-
0
votes2
answers291
viewsA: How to manipulate image loaded by background: url();
Manipulating css: div { background: url('fotourl'); background-size: 25%; border: 2px Solid #92b901; width: 300px; height: 200px; } This site teaches various shapes and properties to background url…
-
1
votes1
answer62
viewsA: How to make the image border below?
* { margin: 0px; } div { height: 300px; width: 300px; background-color: gray; float:…
-
0
votes1
answer103
viewsQ: Light and delete background content with Animation
I wanted to do an effect with the Animation or Transition CSS3 that when the red square passes, the background appears (the yellow background with the texts) and then erases immediately after the…
-
0
votes1
answer72
viewsQ: Trouble with Nan
Someone can help me with this site. The front part displays the prices only that just below displays again with Nan. When you enter any product, Nan disappears. Any hint how I can fix this? Any…
-
2
votes1
answer33
viewsQ: Print with setInterval in the same place
I need it when "filling..." is printed by setInterval, whether it’s exactly the same place as the first impression. It turns out it’s going down or forward. There is how to do this, print several…
-
6
votes2
answers120
viewsQ: Division greater than R$999.00 results in Nan. How to format correctly
Division less than R$999.00 works correctly. However, more than R$999.00 results in Nan. How to revolve this? I’ve already put a replace and nothing! $(document).ready(function() { var demo1 =…
-
2
votes1
answer36
viewsQ: How to divide all span . class by 3
How to make these divisions and get different results for each division. The result is right only for the first price and the other results are all the same: 200. $(document).ready(function() {…
-
0
votes1
answer226
viewsQ: How to change cover photo
How to update photo from this cover from my computer with javascript, button input type="file" or with nodejs. Follows the code: <!DOCTYPE html> <html> <head> <meta…