Posts by Marcus Botelho • 53 points
7 posts
-
0
votes2
answers379
viewsQ: Using the filter method an object array
I have an array of objects: const musicData = [ { artist: 'Adele', name: '25', sales: 1731000 }, { artist: 'Drake', name: 'Views', sales: 1608000 }, { artist: 'Beyonce', name: 'Lemonade', sales:…
-
2
votes1
answer5537
viewsQ: How to resolve: Failed to execute 'appendchild' on 'Node': Parameter 1 is not of type 'Node'
I’m having a problem with an ES6 application. I am creating a table that receives values from a form, but whenever I click on the button to send the information to the table, from the following…
-
2
votes1
answer979
viewsQ: Export CSV data via JS
I have a data set in the database in my back end, and I need to create a button on which the user will click to export this data in CSV format. But I have never done this type of event in J. Someone…
-
0
votes1
answer109
viewsQ: How to capture backdate
I have the following question. I have to capture two dates, one being today and the other being 15 days back. To get the date of the day I did the following. function dateFormat() { var initialDate…
-
0
votes1
answer3738
viewsQ: Delete row from a table with javascript
I have a table with several elements (partners), and I need to make the delete button work. But every time I set the event the button erases all the elements and not just the line I want. <table…
-
0
votes2
answers782
viewsQ: Modify a button through an input
I wonder how I can change the name and the property of a button from the choice of an input (radio button). <h3>Criar novo usuário</h3> <p></p> <form class="m-t"…
-
0
votes3
answers52
viewsQ: For JS code to scan the console
I have a simple code in JS, and would like to analyze the browser console, but as soon as the code runs the function it gives Reload on the page. Complete code HTML <div class="wrapper…