Questions tagged as 'javascript'

4
answers

Pass JavaScript variable to PHP? [closed]

By means of a combobox (loaded by names of a database using a while I made a function of javascript that when I choose a name of combobox I bring in a separate input the card of that name . I have read about js...
asked by 22.12.2016 / 17:46
1
answer

What is the difference between using 'window.addEventListener' and 'window.document.addEventListener'

What is the difference between using window.addEventListener and window.document.addEventListener window.addEventListener("keydown", function(k){ if(k.altKey) { alert("Solamente window.addEventListener: Tecla [ALT] PRES...
asked by 26.06.2017 / 22:19
2
answers

Problems with use $ (document) .ready (function () {})

I'm starting with js and in practice this question arose: The script that I will show below works correctly. <script src="js/jquery-2.0.2.min.js"></script> <script> function accion(num){ if (num==1) {...
asked by 25.07.2017 / 20:32
2
answers

Get values from a table row x row - jQuery

How can I go through the rows of an HTML table and get the values with a button? I have the example of a table that gives me the specific value of a cell when I click on the row, but what I need is that when I click on an ok button I get the...
asked by 04.11.2016 / 20:05
1
answer

How to download audio generated with ResponsiveVoice in an MP3 file with Javascript?

I am using responsivevoice.js to generate audio from text and I want to save the audio in mp3 . <script src="http://code.responsivevoice.org/responsivevoice.js"></script> <script type="text/javascript"> respo...
asked by 22.12.2016 / 13:01
1
answer

Hide message source in browser inspector

Is there a way to hide the route shown to the right of the JS console when a message is generated? Let me explain, for example, when you generate a console.log(""); it tells you that the Virtual Machine generated it, well, that route...
asked by 03.02.2017 / 18:30
2
answers

Color changes with JavaScript

Hi, I'm learning JavaScript and I have a problem with the following exercise within my html I have my ID which have the name red and blue colors. and within my JS I have my next line of code. const redButton = document.get...
asked by 12.01.2017 / 01:44
1
answer

How to create select for each element in an associative array that I receive as a response to an ajax post

I am working on a website with CodeIgniter, I need to create a select for each element I receive in an array or json. I do not know which is the best option as a response to a post I do with ajax. The problem I have is that I receive an array li...
asked by 05.10.2016 / 16:18
2
answers

Validate valid emails in a textarea

I have a textarea that validates a string of emails separated by commas, or better known as CSV. The event works half-heartedly, because it does what I want but not as I would like. When adding a string, if there are 2 invalid emails followed...
asked by 22.03.2018 / 17:07
4
answers

Event onclick does not respond

I'm trying to execute this code: <style type="text/css"> #boton{ width: 50px; height: 30px; display: block; margin:30px; } img{ width: 300px;...
asked by 24.04.2017 / 17:03