Questions tagged as 'javascript'

3
answers

Validate field with Javascript [duplicate]

Good morning, my doubt is as follows. How can I validate a field with Javascript ? My code: function escribir_nombre(){ var nombre = document.getElementById("nombre").value; if(nombre<10){ alert("El nombre...
asked by 12.06.2017 / 18:35
1
answer

String a Date JavaScript

I have the following string: "1476154800000" I want to make it a date with the Date object, but I can not get it, anyway I get an error. of this menera works: new Date(1476154800000); but the string is returned by a query and I can not m...
asked by 09.06.2017 / 15:56
3
answers

How do I prove that a variable is a string? [closed]

How can I determine if a variable is a string or something else in JavaScript?     
asked by 25.09.2017 / 21:37
4
answers

How to get value from several labels to and display in an input text?

I have a group of labels and I want that when you select 1 or several, the VALUES of each of the labels in an INPUT TEXT is shown or displayed. With this code I already show ONLY 1 OF THE LABELS, I still can not get the value of more than 2 labe...
asked by 27.09.2017 / 18:57
2
answers

How can I fix this console problem: "Bootstrap dropdown requires Popper.js"

I am creating a web page. Where I have an index and at the same level a folder js with three javascript files (bootstrap.min, jquery.min, popper.min). And another folder called css with two ficeros inside (styles.css and bootstrap.min.css). I ha...
asked by 28.09.2017 / 14:12
1
answer

Problems setting a Boolean variable

Hello, I am programming a web calculator with javaScript and what I want to achieve is that for example: when I add two values and I click on the minus sign, this first executes the pending sum (this is doing well), now when I enter another numb...
asked by 07.02.2018 / 22:18
2
answers

Remove text from a select with JQuery

Can you help me with a function that removes texts from two combos? The combos are the following: The problem is that by eliminating the selection of the Country combo, the other combos (State and Municipality) must be cleaned, that is...
asked by 07.02.2018 / 18:52
1
answer

Enlarge an image by clicking

Having a "thumbnail" image in HTML as follows: <img src="recursos/calle.jpg" width="80px" height="90px"/> How can I do so that when I click on it it enlarges in the form of a full view on the screen?     
asked by 10.02.2018 / 13:10
3
answers

Close JavaScript window

I'm trying to make the current window close with some kind of java script function. But I have not managed to achieve it. I have already used some methods but apparently they do not work unless the window is opened by means of a similar function...
asked by 09.02.2018 / 19:19
1
answer

angular code js filter does not work for me

function MyCtrl($scope, $filter) { $scope.items = [ {id:71610067, name:'John'}, {id:2, name:'Steve'}, {id:3, name:'Joey'}, {id:4, name:'Mary'}, {id:5, name:'Marylin'}]; $scope.it...
asked by 02.06.2017 / 17:42