Questions tagged as 'javascript'

1
answer

How to add a character in a string, which is already divided, to each N character?

I need to know how to separate, in line breaks, one string to each N character. However, before separating each N characters, they have already been separated by each comma .    I want this separation to be a break in the output. Only th...
asked by 08.06.2018 / 16:13
1
answer

What does the cell look like when it comes to printa x

I'm trying to make it paint the table cell when it starts the x there, but it's not working. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edg...
asked by 07.06.2018 / 16:54
2
answers

Paint input when clicking the checkbox

I need to just click on checkbox to paint background on tr and on input. In the code below, it paints only background of tr and clicking anywhere in tr . <html> <head> <script src="//c...
asked by 01.06.2018 / 14:58
1
answer

How to make a javascript function run correctly with option and select tag?

I've tried it anyway and I can not get the javascript compute3 function to run correctly. The result is only one decimal place and does not obey the option selected. Detail: The code must be in pure javascript . If anyone can help I am imme...
asked by 02.06.2018 / 20:33
3
answers

How to access the data-opened property of each div that is inside an array? Jquery / Javascript

How to access the data-opened property of each div that is inside an array? <div class='bares' data-opened=1></div> <div class='bares' data-opened=2></div> <div class='bares' data-opened=3></div>...
asked by 08.06.2018 / 21:45
1
answer

Get an element of a class with Javascript

I want to get an HTML element that is with a class, but that same class is in other elements. <img class="imagens-noticias" src="imagens-noticias/noticia-1.png" alt="imagem"> <img class="imagens-noticias" src="imagens-noticias/notici...
asked by 28.06.2018 / 05:03
4
answers

How do I force numeric keypad display on my smartphone when I click on an input?

I have a field in my form with type="text" and it has masks for the zip code. When I access the cell phone and click on the field I need to press the number keypad. Can anyone tell me if you have any possibility of opening the automatic n...
asked by 25.06.2018 / 20:19
2
answers

How to show next field when user clicks green button

I have several fields that are hidden and should only appear when the user clicks the view button next to the first field. My initial idea would be when the person clicks the green button (after the .newField) it adds the newField class to th...
asked by 04.07.2018 / 15:00
2
answers

Send a video recorded via Javascript by input type="file"

I'm doing a questionnaire system for a client. From this questionnaire some questions should be answered by video. When opening the page of the question the camera already begins to record the user. I am able to write the video, save to a JavaSc...
asked by 29.06.2018 / 21:34
1
answer

Javascript sends submit same checking date

I have a function in JS that validates the date so that it is not smaller than today's date, is working correctly, however when you press the form button, it shows the message that the date is incorrect, and even the date being wrong it still do...
asked by 04.07.2018 / 03:41