Questions tagged as 'javascript'

1
answer

Check a checkbox with javascript

I receive information from an arrangement and I want that according to what I receive, the check that I have is activated, I have used several options and none of them works for me: $("#inicio").prop("checked", true); $('input[name="inicio"][v...
asked by 05.01.2018 / 17:23
1
answer

vuejs v-for For a JSON response

I'm starting to use Vue.js, and I have the following code: <div id="app-5"> <section v-for="n in repeat"> <div class="lol">-test-</div> </section> <img v-bind:src="src" width="80px" heig...
asked by 05.01.2018 / 17:59
0
answers

How to send data from a form with fetch help to nodejs server using express

const formSignin = document.querySelector('#formSignin'); formSignin.addEventListener("submit", event => { event.preventDefault(); const formDataSignin = new FormData(formSignin); fetch('/signin', {method: 'post', body: formDataSignin})...
asked by 23.01.2018 / 19:13
1
answer

content repeated with .clone () jquery randomly displayed

I have a big doubt, I want to make a list of images that are repeated as well as this in the code using jquery I can clone the elements li , but I want that when displaying the repeated elements, come out in disorder , right now the...
asked by 23.01.2018 / 20:28
0
answers

EPSG Transformations in Leaflet

I'm migrating from the OpenLayers library to Leaflet and I have this problem: The OpenLayers code transforms the EPSG coordinates: 4326 to EPSG: 3857: var arCoordinates = ol.proj.transform(iarClickCoordinates, 'EPSG:4326', 'EPSG:3857');...
asked by 23.01.2018 / 21:47
0
answers

Send form values using Jquery and return response

First of all a cordial greeting! I have one forms where the user enters a series of numerical values. What I want to do is send these values to a PHP file using Jquery so that PHP can perform a series of calculations with them (subtraction,...
asked by 02.01.2018 / 06:58
1
answer

Array from JS to php codeigniter

I am working on a personal project and I have a question about the passage of data to php. It turns out that in js I keep changing the colors of the div (the colors are initially loaded through a query to a bd) in an array, with the code and...
asked by 23.01.2018 / 19:29
0
answers

Take the name instead of the ID

I have a list of data obtained from a database, but when I give "delete", in the text I get if I want to remove the product "id", and wanted to change that instead of the ID, leave the name of the product. The code that I have put is this: <...
asked by 02.01.2018 / 10:53
1
answer

Copy the value of a dynamic input to another dynamic input

Hi, I am new to javascript, but I am working on a dynamic input that is multiplied but how could I make the first dynamic input data be copied to the other inputs ... Thank you very much Here is a part of my code $(document).ready(funct...
asked by 04.01.2018 / 16:36