Questions tagged as 'javascript'

1
answer

How do I detect all changes in an input type of a form?

Hi, I have this form: function balidatu(){ var pas1 = $("#pass").val(); var pas2 = $("#passC").val(); if(pas1 != pas2){ alert("Pasahitzak berdinak izan behar dira."); return(false); }else{ return(true);...
asked by 21.11.2017 / 15:05
2
answers

Take the value of the operator to perform javascript operations

I am starting to learn javascript and the fact is that we are doing a calculator and I do not know how to do it so that I do not concatenate the two numbers that I have to add: (when adding 12 and 20 in the alert I get 12 + 20 , that is, the + s...
asked by 02.11.2017 / 20:20
2
answers

AJAX - Load values of .php in a select - Provinces

I have to load the provinces, they are in an .sql file that I load in the phpmyadmin, in a select within a formulario . The form has a select are the following information: <tr> <td align=right>Provincia:...
asked by 05.06.2017 / 15:41
2
answers

Open new window with action inside li

This menu works very well, it opens the pages within the same window, but it does not let me open in a new window. I have already tried it in several ways but nothing but I can not open a new window. This is my code: <meta http-equiv=...
asked by 27.08.2016 / 18:50
1
answer

get the objects that are repeated in an array of JSON objects with javascript (JQuery)

I give as an example the following array of objects in JSON: [{"id":"aaa","uns":"123"},{"id":"bbb","uns":"023"},{"id":"aaa","uns":"123"},{"id":"ccc","uns":"765"},{"id":"ddd","uns":"256"}]. I would like to obtain an array with the repeated...
asked by 06.06.2017 / 10:46
3
answers

Loop do while javascript

I wanted to know if someone could help me, I'm doing an exercise in javascript in which I collect cookies I leave the code: window.onload = function(){ var contador = 0; do{ contador=contador+1;...
asked by 28.04.2017 / 04:12
2
answers

A javascript script does not work for me

I have the following code, the part of css and html5 works very well, but I can not know why the script is not executed, from the button I call the function verificación(); through the event onclick , but when y...
asked by 06.05.2017 / 04:00
1
answer

String stored inside an array becomes undefined in JavaScript

I have some text strings stored in an array and I want to use them to add a CSS property to a series of images. var img = document.getElementsByClassName("post-image"); var link, w, h; var margenes = []; for (var i = 0; i < img.length; i...
asked by 18.05.2017 / 04:05
2
answers

Change the style of a DIV when it is pressed

I have a problem with a hybrid mobile application. I would like to change the style of a div when it is clicked. I currently have something like: <div id="foo"> Lorem ipsum dolor... </div> and I apply in my document css:...
asked by 20.04.2017 / 22:39
3
answers

Check that read-only fields have not been modified

I am using spring-mvc and I have a form in a jsp, in this form there are fields that are read only, imagine that we have to make a payment and a field is the amount, I would like to know how I can do to verify that the read-only fields have not...
asked by 06.03.2017 / 20:44