Questions tagged as 'javascript'

2
answers

show a div if some fields are not empty

I have some input that I need to validate and I have an input with id "show" hidden with hide (); I want to show that input if for example salary and position are not empty the other input that I have may be empty. I was stuck with the if...
asked by 01.03.2018 / 15:45
1
answer

Send dynamic ids in POST to another php file

Hello, I am creating some dynamic inputs in the following way: $(".reporteBody").append('<input type="text" name="titulo' + y + '" id="tiulo' + y + '" value="Caja # ' + y + '">'); Let's say that 3 inputs are created, and since they ar...
asked by 25.02.2018 / 16:56
1
answer

How to make a search engine that searches in multiple columns?

I'm working on a project with phonegap, so I work in javascript, html and css environment and working this data externally with PHP and MYSQL. I have a search engine made by ajax and that everything is perfect, it shows me what I'm looking for c...
asked by 26.02.2018 / 14:18
1
answer

Insert data from an array to mysql with php

I have two tables related to the principal and the detail. I have to register for example: Tabla 1 Idpersona persona 01 Juan Tabla 2 ID idpersona pedido 1 01 zcahs 2 01 bitcoin 3 01 Eterium To insert...
asked by 25.02.2018 / 13:33
1
answer

Return variable from jsp to another jsp

Hi, I have a jsp with the following function and I would like to know how to call it in another jsp ... Thanks to everyone! <script type="text/javascript"> function getHeight(){ var alto = document.getElement...
asked by 09.03.2018 / 08:27
2
answers

See if element exists in the php database

I'm trying that when the user leaves the focus of an input text it shows if that value already exists in the database or not, but it always throws at me that it exists. (The request goes through a controller but I omit it here), I feel that the...
asked by 15.02.2018 / 21:18
1
answer

Change properties of div with JS

I need that when selecting in the select with id='numplacas' the value 2 shows the div that is hidden , it is displayed, in the case that the value of the select is 1 that adds the class hidden to div with id='placa...
asked by 13.02.2018 / 16:25
1
answer

Datatable Format after Reloading Data

I have this dilemma with Datatable. I load the data in the datatable and initialize perfectly with this code: $(document).ready(function () { $('.table').DataTable({ sScrollX: false, dom: 'Bfrtip',...
asked by 12.02.2018 / 15:48
1
answer

Empty list after having filled in javascript [duplicated]

Hi, I have the following function in Javascript that is executed when the document loads, I am trying to fill the array lista but every time I want to show it with a console.log or an alert (except the console.log inside the foreach, th...
asked by 14.02.2018 / 16:41
1
answer

JavaScript doubt: clutter array with loop

I am doing an exercise for a job and I have a problem when messing an array. That is, I have an array called "numbers" and a function that messes up. Then I create an empty array called "disordered numbers" which I will fill with three positions...
asked by 12.05.2018 / 16:15