Questions tagged as 'javascript'

0
answers

JS Event on Elementor

Good morning, everyone. I need to create an event on a site that takes the following action. On the right side I have a block with 6 titles, each for a different block on the left side. I need to know how I do (code) handling in javascr...
asked by 13.11.2018 / 14:00
1
answer

Insert value in input value when expanding image with javascript

I have the following code (its function is to expand the image in a div where it has the id #expandedImg. function myFunction(imgs) { var expandImg = document.getElementById("expandedImg"); var img...
asked by 13.11.2018 / 16:23
0
answers

Sort elements between divs with drag and drop

Good afternoon. I'm doing a personal project and in it I have several divs with divs inside and I need to be able to exchange those elements with each other, I can put an element that is in col-1 with what's in col-2 for example, in a range o...
asked by 06.11.2018 / 16:58
2
answers

Generate HTML components with PHP and assign them javascript characteristics

I created a form that has a panel, and in that panel it has a input date with a jquery datepicker . If I have data entered in the database, my PHP creates more rows in this panel (via ajax ) with other input to insert d...
asked by 07.11.2018 / 01:02
1
answer

Drag & Drop with jQuery does not put the element in the right DIV

I'm trying to perform two image swapping when a user clicks on an image and drags the other image. However, my code does not put the images in the correct position, it leaves the destination image in the same place and puts the image that was...
asked by 07.11.2018 / 00:46
0
answers

How do you readjust the label of a chart js chart?

How do I adjust the font size of the label or place a line break? The text is not fully fit, so 1080 monitor fits, but 720 happens that. Mycode:<script>varmyChartcaixa=newChart(document.getElementById("caixa-chart"), { type: 'p...
asked by 06.11.2018 / 13:02
1
answer

Modal Boostrap is not displayed

I have a form that I am trying to implement a modal that confirms the submit of this form, however it only appears when I do not type the required fields, if I type the required fields it goes straight to the action If anyone can help me, I a...
asked by 06.11.2018 / 20:48
2
answers

Function reset in JS does not work

The button clears the form but does not perform the rest of the functions function reset() { var form = document.getElementById("form"); var nome = document.form.nome.value; var set = confirm("Deseja apagar os dado...
asked by 07.11.2018 / 02:10
0
answers

Save the result of a calculation to use afterwards - JS / JavaScript

Good night everyone, I have a problem and I have no idea how to solve it, I recently started a web course and the initial subject was JS. So that I could test my knowledge, thanks to the tip of a friend, I decided to create a "game" and managed...
asked by 07.11.2018 / 02:20
1
answer

Concatenate string in javascript object

Could someone help me understand why I can not find the regionName in the object. <img src="mapa.jpg" usemap="#image-map" class="img__map">                          const map = document.querySelector('.mapa'); const contentMap = {...
asked by 12.11.2018 / 14:51