Posts by Richard Gomes • 99 points
8 posts
-
-1
votes2
answers37
viewsA: I’m making an Alert after 3 clicks and stop the next clicks, but when I uncheck some that was marked Alert still appears
I couldn’t get your code to work here... but I made some changes to your code, I started using jQuery and Events <!DOCTYPE html> <head> <meta charset="UTF-8"> <meta…
javascriptanswered Richard Gomes 99 -
0
votes2
answers49
viewsA: How to repeat div with json with dynamic content?
test the following code var jsonnomes = { "status": "ok", "totalResults": 3, "nomes": [{ "name": "Pedro", "idade": "33" }, { "name": "Bruno", "idade": "27" }, { "name": "Julia", "idade": "25" }] }…
-
0
votes1
answer41
viewsA: I created a function to remove the last string but this bug
Replace your replace with a substring function retirar() { const palavraCompleta = telaResultado.value const ultimaLetra = palavraCompleta.substring(0, telaResultado.value.length - 1)…
-
0
votes3
answers179
viewsA: Create another input field with the enter key
Just use the function $(element).focus() Follows Example function fTeste() { $('#i3').focus() } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>…
-
0
votes2
answers243
viewsA: Switch Case with Java Script and Checkbox
Follows the resolution of your problem. replaces the document.getElementById().value for document.getElementById("uberX").checked this way if the Checkbox is marked the return will be true if not…
-
0
votes1
answer72
viewsA: update does not work after ajax request
By analyzing your code you are using the method GET to search for customer names, and this using the method post to update. The correct method to make a update is the PUT Requires a resource to be…
-
1
votes1
answer62
viewsA: Error calling ajax function
Replace the head tag of your HTML file with the following tag <head Access-Control-Allow-Origin: *> For requests without credentials, the server can specify "*" as a wildcard, thus allowing…
-
5
votes4
answers130
viewsQ: String Manipulation in Javascript?
I have the following code var wcalcAlm = ('0140') alert(wcalcAlm) //retorno esperado ('01:40') I need that after the 2 position of the variable wcalcAlm be included :, thus having the following…