Questions tagged as 'javascript'

2
answers

Give more time to show in ajax

I have this code and I want to give it a little more time when displaying the #result element. $(document).ready(function(){ $('.para_envio').submit(function(){ var x = confirm("Are you sure you want to update?"); if (x...
asked by 19.05.2017 / 03:47
2
answers

Sort array by two properties (JavaScript)

I have an array with objects that have the following format: { "username": "Antonio", "bot": false } I currently have the following code: guild.members.sort((a, b) => a.user.username > b.user.username ? 1 : -1); In which, sor...
asked by 16.05.2017 / 08:57
1
answer

Firebase cloud functions - TypeError: Can not read property '

I explain my problem, I have made a function for firebase for when it is inserted, in this case, a new side in Firebase Firestone , the function sends a notification to the users. The problem is when I try to get the id of the document bec...
asked by 09.04.2018 / 17:59
2
answers

add input values and subtract them if necessary

Good morning, I have the following script which adds the real-time values of 5 input, they all have the class input_values_provisionals and shows them in a span of id total_provisionals The question is that if for example the sum goes to 20 a...
asked by 05.04.2018 / 19:28
2
answers

I want to save the data of a form in javascript variables and then fill another form with those variables

Script: var texto = ""; function getData() { "use strict"; texto = document.getElementById("texto").value; } HTML: <html> <body> <script type="text/javascript" src="capturador.js"></script>...
asked by 04.04.2018 / 20:20
2
answers

link depending on the radio button selected in PHP and HTML

hello everyone would like to know how to make a link depending on the selected radio button <section id="form"> <form action="votarEncuesta.php" class="contact_form" name="form1" method="post"> <table>...
asked by 05.04.2018 / 19:42
5
answers

Show Hidden Element when checking a Checkbox

My question is: How would you make the "Delete Selected" button that is hidden with "display: none" when you check any of the Checkboxes; And when you uncheck them all, the button is hidden again. And if possible, show an Alert by asking "Are...
asked by 06.04.2018 / 15:11
2
answers

Javascript Reference Error

I think one of my biggest problems in javascript is the way I write what I do and I need a push if someone can why this happens to me: I'm getting the following error:    Reference error: simplefor is not defined The only thing I c...
asked by 24.05.2017 / 12:23
1
answer

Catch value input radio or input checkbox

I have a database query that takes out several radios and checkbox and I want to take the value and save it in an array in jquery by clicking a button. Could it be done without taking the name? I have an question with several answers and each qu...
asked by 22.05.2017 / 07:52
2
answers

How to remove the brackets in a string? [duplicate]

With this code I search in a string the indexes of "[" and "]" and then delete what is inside them with a replace , but I also need remove the brackets , how should I do it? , because it does not eliminate them in...
asked by 28.06.2017 / 17:35