Questions tagged as 'javascript'

2
answers

Multiplication and sum of results of a Foreach

Hello StackOverFlow colleagues, I am currently trying to multiply percentages%, but currently I have not been able to perform this operation, Considering that it is a foreach that loads both inputs .weight and .qualification the...
asked by 28.06.2017 / 18:20
2
answers

split Javascript separator

I have to write a function in which I pass a complete name (string) and return the abbreviated name (the name and first letter of the first surname, followed by a period) - > that is, I type Pepito Perez and Pepito P has to return me. I am...
asked by 24.10.2018 / 13:32
4
answers

Disable or enable an input by means of a Select [duplicate]

I would like to know if there is any function to enable or disable a INPUT depending on the value of a SELECT This is my code: <div> <select name='id_categoria' id='id_categoria' onchange="carg(1);">...
asked by 26.07.2017 / 10:41
2
answers

How to validate the first option of a select using the 'change' event

I have a <select> with several <option> that take different values as the user is choosing a different one. The problem is that the first option will never take its value unless the user activates the 'change' event, th...
asked by 29.10.2018 / 14:07
2
answers

Search credit card number in an input or textbox, after this remove it [closed]

I need to validate if in a <input> or <textarea> there is a credit card number, after this remove it or replace it with XXXX for security issues in a chat I am developing. Example:     
asked by 16.05.2017 / 18:20
1
answer

Values of a Select - Javascript

Unable to modify the HTML, only with Javascript perform the following operation: I have a SELECT with four possibilities: <select name="tipo" id="tipo"> <option selected value="none">Elige uno...</option>...
asked by 25.05.2017 / 14:10
3
answers

Is it possible to change the value of a ng-model using a filter?

I am making a array , but I want to change the value shown in the view according to some evaluations. would be showing the values like this. <div ng-repeat="valor in bonos"> <label>{{valor.nombre |filtro: myfuncion}}</...
asked by 16.06.2017 / 23:17
1
answer

Jquery.Ajax does not work in Chrome, but if it works in Firefox

I am using a method that loads information from a database in a combobox, but what is shown depends on the previous selection in another combobox ... A dynamic combobox. It happens to work perfectly in Mozilla Firefox (v.54.0) but does not...
asked by 16.06.2017 / 17:54
1
answer

Error jquery background color

I have the following code, but I change the background color of the body, I think it must be something of the scope, because it does not give me any error. I thought about putting body onLoad='setThemes();' , but it says: setThemes i...
asked by 04.05.2017 / 12:40
1
answer

return true or false from a function that is inside another function in nodejs

This function is to detect if there were no errors at the time of deleting the records but I call it from another function as well if(!deleteAllSectionsPage(123) ) { //alguna accion. } I have function deleteAllSectionsPage(idpage) {...
asked by 02.04.2018 / 05:29