Questions tagged as 'javascript'

1
answer

Remove dynamic inputs

I wanted the help to be able to delete a line from my form with javascript. I'm able to duplicate it, but do not remove it . $(document).ready(function(){ var clone_step1 = $("#step1").find(".duplicar-presencial").html(); // cópia da d...
asked by 04.07.2018 / 23:37
1
answer

Error npm install angularjs-dragula

I need to install angularjs-dragula ng2-dragula react-dragula At first I had the error: C:\Users\email\Desktop\Parafernalia Test> npm install angular js-dragula --save npm WARN saveError ENOENT: no such file or directory, open 'C:\U...
asked by 05.07.2018 / 16:10
1
answer

Make multiple requisitions or just one?

I'm doing an application in nodejs, where it is constantly necessary to consult information in the database, for example: name, description of items and etc ... A similar site would be netflix, which queries such information every time the user...
asked by 07.07.2018 / 18:56
2
answers

Update object values via GET without repetition

I'm working on a flat table, which has a script with several objects, like this: var plano_basicoUS = { 1: null, // mensal 2: null, // trimestral 3: null, // semestral 4: null, // anual }; var plano_economicoUS = { 1: nu...
asked by 13.06.2018 / 03:53
1
answer

Disable field when clicking the checkbox [closed]

How do I disable a field by clicking the checkbox option?     
asked by 14.06.2018 / 23:23
2
answers

How do I access the date-weekday property of the div element with javascript?

How to access the date-weekday property of the div element with javascript? <div style="display: none;" id="weekday" data-weekday="7"></div>     
asked by 14.06.2018 / 14:27
1
answer

How to use svg (or div) to click and select the corresponding checkbox

I have a form that is a revenue search filter. In this filter I have a checkbox group for the category: <form method="get" action="/busca"> <h4>Categoria</h4> <input type="checkbox" name="categoria[]" value="entrada"&g...
asked by 05.09.2018 / 16:12
1
answer

Calling a static method by name as string in JavaScript

If I want to call a static function by name as string, how do I? I did what is below, suppose the function name is "move". class Transformation { static operate(object, function_name) { eval(function_name)(object); } s...
asked by 25.07.2018 / 01:40
3
answers

How to show the current date when the page loads

I want to display the current date on a particular div while loading the page, I've already done a functional sketch of the code, however I'm using the button . Follow the code: function formataData(data = new Date()){ var dia = dat...
asked by 22.07.2018 / 20:43
1
answer

Retrieve DOM element from a column

I have a Jquery event that captures information from a table row (I am using Jquery DataTables). var linha = $(this).parents('tr')[0].innerHTML; The value returned is this: <td class="text-center sorting_1">118587</td>...
asked by 24.07.2018 / 15:06