Posts by Gabriel Loch • 21 points
4 posts
-
0
votes3
answers160
viewsA: Javascript function works only once
Try it this way. $(document).ready(function() { $('#tabela').on('click', 'tr', function() { const status = $(this).find('[name]').attr('name') if (status == 'botaoAtivo') {…
-
1
votes3
answers132
viewsA: Best way to pass data from one component to another
When the user clicks on the purchase button, you can use the Session Storage to save this information. So on the other page, you can check the value of these variables (plan and term), and make the…
-
0
votes1
answer38
viewsA: Problem is not a Function when modifying a position in a Tile
setTileCount was not declared within the Player class, so setTileCount is not a Player method. I say this imagined pl1 is an instance of the Player class.…
javascriptanswered Gabriel Loch 21 -
1
votes3
answers1609
viewsA: What is the function of the vector (array)?
Simply put, a vector is much like an array. The difference is that the vector usually has the predefined size at the time of the declaration, for example: int meVetor[10]; In this case, myVetor will…