Questions tagged as 'javascript'

1
answer

save data in an array with js

I have two variables with their respective values: lat = ["-100.41812896728515","-100.41812896728517","-100.41812896728519"] lng = ["20.62346622550882","20.623466225508828","20.623466225508828"] What I want is to unite both that is...
asked by 27.12.2018 / 17:17
1
answer

Change of icons in drop-down list

I have a list of dropouts to which I have placed an image of an arrow, which must change from when it is closed to when the drop-down is displayed. When I do the modification of the image from closed to open it does it well, but when the drop-do...
asked by 17.12.2018 / 20:00
1
answer

How to make the check or error glyphicon only appear when you submit with the formvalidation plugin?

Well, as you will see how formvalidation normally works, it is placing a glyphicon as correct or incorrect as you type the email or password with its regular expression, as in this example that appears in the documentation Example , and I wou...
asked by 05.09.2016 / 03:14
1
answer

Hide Tab in primereact

I have a component of primereact . <TabView > <TabPanel header="Panel 1"> </TabPanel> <TabPanel header="Panel 2"> </TabPanel> </TabView> How can I show / hide a tab according to a specifi...
asked by 11.12.2018 / 09:04
1
answer

Simplify submit Form Angular 7

I have this function and I do not know if it can be simplified because I think it's too long. submitForm(){ if(this.operatoId){ this._oper.update(this.operatoId, this.registerForm.value).subscribe( (val) => { console....
asked by 04.12.2018 / 09:32
2
answers

Edit text from the front end

I have these panels in Bootstrap, with text written directly from html, that is, without bringing it from the database .. The question is, is there any way to edit what you have written directly from the front end, ie without having to...
asked by 04.12.2018 / 23:28
1
answer

Link select with AngularJS data

I request your collaboration to indicate how to link the data of an object with <select> app.controller('nombreCtrl', ['$scope', '$http', function($scope, $http) { $scope.nino = { nombre: 'Julian', sexo: 1, edad: 0,...
asked by 30.08.2016 / 12:34
1
answer

document.querySelectorAll (". class") vs. document.getElementsByClassName ("class")

Apart from the differences in support from older browsers, what are the differences between doing: document.querySelectorAll(".clase") or do document.getElementsByClassName("clase") in JavaScript? Is any of those methods more efficient...
asked by 29.08.2016 / 19:00
2
answers

I want to convert a JSON to a javascript object [duplicated]

I want to convert a JSON to a javascript object but it gives me this error:    Uncaught SyntaxError: Unexpected token or in JSON at position 1 at   JSON.parse () at convertJsontoObjetoJS   (Test_JSON-serializacion.js: 23) at onload (Text_ht...
asked by 11.12.2018 / 01:22
1
answer

show summation of mysql columns and their columns

I've been googling and I do not quite understand how to show the sum of a column and show the values of the columns I add. for example: Table Users id, first name, value1 value2 I would like to show the sum of the values 1 but I would l...
asked by 27.12.2018 / 09:39