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...
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...
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...
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...
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...
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...
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?
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...