Questions tagged as 'javascript'

1
answer

setCustomValidity does not work

Hello, good night, I am trying to modify the default message of the required attribute with the setCustomValidity but it does not take me that it could be ... HTML:            <form name="info" method="GET" id="caja-form">...
asked by 03.01.2019 / 01:17
1
answer

firebase does not work

I'm making a website where I use booststrap and firebase. Total that I have the form to collect the user's data to later send it to firebase to add it to the database. I have searched for information because it does not work (the data is not...
asked by 30.12.2018 / 19:03
2
answers

how to control the behavior of a checkbox switch

What I need is quite simple, however I have not been able to find the solution, what I need is that when I click on the checkbox switch, that the switch activates or deactivates depending on an action, this block of my system deals with of chang...
asked by 08.11.2018 / 14:05
2
answers

Solve concatenation of document elements

I can not go through the for. since the variables that store the document elements are not concatenated. What I'm looking for is to make a counter of the ones that are inside the id menu and its li. addEventListener('click',eventoE,false...
asked by 11.11.2018 / 00:28
2
answers

Validation checkbox group with javascript or jquery

searching the web I can not find the solution, so I ask for help, I need to validate a checkbox group that is generated for each row of a table, what I need is that you can select a check only if the row previous one was selected first, that is...
asked by 12.11.2018 / 13:39
2
answers

Doubt with map and split of string

var MORSE_CODE = {"a": ".-", "b": "-...", "c": "-.-.", "d": "-..", "e": ".", "f": "..-.", "g": "--.", "h": "....", "i": "..", "j": ".---", "k": "-.-", "l": ".-..", "m": "--", "n": "-.", "o": "---", "p": ".--.", "q": "--.-", "r": ".-.", "s":...
asked by 02.11.2018 / 22:05
1
answer

Save Value of an Input Radio in a Javascript variable

This code corresponds to the JavaScript code: <script type="text/javascript"> $(document).ready(function() { var Id = document.getElementsByName("rama");//ESTA ES LA FORMA QUE USO let activoFijo = $('input[name="activoFijo"]:chec...
asked by 18.10.2018 / 04:52
1
answer

How to display a message below an element that has a display flex

I'm doing a Login, which is more complex than what I just posted, but in reality what I put is my problem. I am validating if the fields do not come empty, if it is empty then add an error message just below the input that was validated. In the...
asked by 18.10.2018 / 21:00
1
answer

send checkbox checked by ajax method

Good I have a survey with several questions, to be exact are 100 and the answers are yes and no, I would like to know how I can send the answers checked whether or not to my ajax method, rather what I have doubt is how to send it the data to ins...
asked by 21.10.2018 / 19:24
2
answers

How to make a mandatory input file?

Cordial Greeting, I hope you can help me, what I want to do is make mandatory a "file" type input. <form method="POST" id="frm_contact" name="frm_contact" enctype="multipart/form-data"> <input type="file" id="1" name="1" class...
asked by 16.11.2018 / 15:00