Questions tagged as 'javascript'

1
answer

Upload a file to Firebase storage using vue.js

I have an html file that receives the file through an input <div class="form-group col-sm-12"> <label>Adjunte la copia de la cedula de conyuge en formato PDF</label> <input type="file" ref="cedulaTrabajador" @change="a...
asked by 27.11.2018 / 21:51
0
answers

Clear fields marked by has-error

I have a form where when wanting to register, send an alert marking the outline of the fields in red in addition to displaying a message, all this created by the class has-error . This is the code I use to do the above said. $("...
asked by 27.11.2018 / 22:13
1
answer

doubt with the result of a fix

I have a question about the result of an arrangement that I believe in an iteration and I do not know why the code is the following: This piece of code is an object which I will use to dynamically manage a direction that I will bring with the fu...
asked by 22.11.2018 / 22:36
1
answer

Nested select values are not loaded in edit modal

I have a problem and I do not know how to solve it, I have a table where the items registered at the end of each column are displayed I have a editar button, by giving click in any, it will open a modal with the data loaded,...
asked by 22.11.2018 / 22:37
0
answers

problems when recording an excel with SheetJS

I have the following script, which allows the user (client) to select an excel from their disk drive, using SheetJs and angularJS <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.2/angular.min.js" ></script> <...
asked by 21.11.2018 / 20:49
0
answers

How to mark a checkbox of a record created dynamically in a table, jquery?

I currently generate a table dynamically in the following way: var prestamos_asignados = $('.prestamos_asignados'); $.each(response.data, function (index, value) { $('<tr/>') .append($('<td/>').addClass('label-cell nuev...
asked by 21.11.2018 / 22:03
1
answer

Problems with "IF"

I happen to be working with javascript and I have had to do this. let ejemplo = "si"; if (ejemplo == "si") { //realiza 'x' } else { //realiza 'y' } So far so good, if my variable ejemplo has the value "if" only performs 'x'...
asked by 12.12.2018 / 21:21
1
answer

Function for all checkboxes

Good day. I need to make a function that works for all the checkboxes of a form, this function should create an input with the id equal to the id of the selected checkbox and when deselecting the checkbox the input should be deleted. I have t...
asked by 12.12.2018 / 22:10
0
answers

Problem when displaying data within a range of dates

I have an input date : <input id="start" type="date"><label>To</label><input id="end" type="date"> Result with dd-mm-aaaa format: This is my JS when you press Generate Report : fu...
asked by 12.12.2018 / 19:52
1
answer

How to return values with JSON in a multiselect

I have the following index, which includes a multiselect (fselect.css and fselect.js) which is shown in the following image: and my code is as follows: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <t...
asked by 21.11.2018 / 19:36