Posts by Geovane da Silva de Jesus • 362 points
14 posts
-
2
votes1
answer579
viewsA: DIV fixed + DIV automatic scrolling
By default, the overflow starts with the value Visible. Try this: (hide the scroll) style="border:1px red solid;overflow:hidden;" Remove height="1000px chunk". And add that to your css: style="...…
-
1
votes2
answers46
viewsA: removeClass with jQuery
Good morning, my friend. You can solve your problem this way: $("table.dados tr").removeClass('text-white'); He’ll get all the tr of all tables containing the class dice.…
-
0
votes2
answers812
viewsA: How to recover the value of Boolean from a REST service in Angularjs?
You can solve by placing the return in a map or in Object: Map<String, Object> resposta = new HashMap<String, Object>(); resposta.put("resultado", Boolean.TRUE);…
-
0
votes2
answers61
viewsA: Could you help me because you won’t remove it from the list?
Good morning, my friend. Your algorithm is correct. However the compiler needs to know what differs a Products object from another Products object. You need to override the equals method of the…
javaanswered Geovane da Silva de Jesus 362 -
3
votes3
answers585
viewsA: Selecting the VALUE of a select with javascript or jquery
You can solve it like this: var selectTeste = document.getElementById('selectTeste'); if (selectTeste.selectedIndex !== 0) { selectTeste.removeChild(selectTeste.firstElementChild); } <select…
-
5
votes4
answers2266
viewsA: How to generate random numbers for Draw?
In Java: Random random = new Random(); random.nextInt(100000);
-
2
votes2
answers3522
viewsA: Enable field when radio is selected
Good morning, my friend. Its implementation is correct. However, it was missing to add the event onClick on the other radio button(optionsRadiosInline1, optionsRadiosInline2, optionsRadiosInline3).…
javascriptanswered Geovane da Silva de Jesus 362 -
1
votes1
answer18
viewsA: Function does not recognize modifier value by it
The command was missing this before the variable you want to return in the get method. this.getHorasAula = function () { return this.horasAula; };…
javascriptanswered Geovane da Silva de Jesus 362 -
1
votes3
answers132
viewsA: Exchange td value after validation
You can do something more or less like this: if (parseInt(item.innerHTML) === 10) { var novoValor = 50; // Implemente aqui a lógica do novo valor item.innerHTML = novoValor; } You can get the…
-
0
votes2
answers717
viewsA: How to identify the HTML element in which a js script is contained?
You can pass the element by parameter using the command this. Example: function teste(elemento) { ... } next: <div onclick="teste(this);"></div>…
javascriptanswered Geovane da Silva de Jesus 362 -
2
votes4
answers364
viewsA: Different methods of creating an object
Briefly: an implementation stores the object reference in a variable. With this, you can use this object at another point of the algorithm. The second implementation, on the other hand, generates…
-
-1
votes1
answer76
viewsA: doubt about JPQL
You can resolve your need using the LIKE command, which also exists in JPQL. And to solve the problem of mai/min, just use the Power function on both sides. ...Where Lower(name) LIKE Lower(:name)...…
-
0
votes2
answers431
viewsA: Increment when calling javascript function
The function will always display the value 1, because the algorithm is setting the value of the variable Count to zero every time the function is executed. You can solve the problem as follows: var…
javascriptanswered Geovane da Silva de Jesus 362 -
4
votes5
answers497
viewsA: Print string in reverse
The exception (IndexOutOfRangeException) was launched because you tried to access a position that does not exist in the string. In the following passage: int i = frase.Length To solve the problem,…