Questions tagged as 'javascript'

1
answer

show and hide html elements with javascript

I'm starting javascript and I have a problem. I want to create a FAQs website and when you click on a question, the answers are displayed. But when I click on the question I see this error in the browser log Can not read property 'getAttribute'...
asked by 17.10.2018 / 11:30
1
answer

Implement currency format in a range type input

what happens is that I have a function to stylize an input of type rengo (see example working), the problem lies is that now I must convert the number shown in currency format with this function or something similar: function toMoney(str, curr...
asked by 17.10.2018 / 20:15
1
answer

AJAX with PHP Finder that consults BBDD

I'm doing a kind of search engine, in which while you press a key, an AJAX request is made to consult it in the DB. The point is that I still do not know much about AJAX and it does not work for me. At the moment I am testing with any text inste...
asked by 28.09.2018 / 17:32
1
answer

'Register' button does not direct me to PHP file

I have been working on a form with HTML; I made the validations with Javascript, but when I clicked the 'Register' button, I was not directed to the PHP file. I hope you can help me, thank you in advance! 1.This is my HTML code. <body...
asked by 29.09.2018 / 05:07
1
answer

I do not receive the data sent from javascript (fetch) to php

I try to do a mini project to practice the use of the fetch (), the idea is to make a search engine which consists of typing a data in an input, when typing it will show information that contains part of that data entered. The thing is that I ha...
asked by 29.09.2018 / 02:44
1
answer

Run javascript function before executing a server function

I have a web page in C # ASP that when I press a button, it passes me to another page by calling a server method with onServerClick. I need to run a javascript on the page before executing the server method or that the screen does not refresh wh...
asked by 04.10.2018 / 07:55
1
answer

soCapture data from a row with JQuery - Ajax - Laravel

I have the following code that shows without any problem a table of records generated from a json array. $.each(query, function (name, value) { fileTable +="<tr><td width='10%'><input type='text' name='fechaAsignacion' id='f...
asked by 19.09.2018 / 14:50
2
answers

form html and javascript div "display: none;"

good try to show a layer when in one of the options of the form option is chosen, connect this code in js: function mostrarReferencia(){ //Si la opcion con id Conocido_1 (dentro del documento > formulario con name fcontacto > y a la...
asked by 20.09.2018 / 09:50
1
answer

Loading images in gallery (No lazyload)

I have the following code that a gallery puts together: <div class="contenedorGaleria"> <div class="m-p-g"> <div class="m-p-g__thumbs" data-google-image-layout data-max-height="350"> <?php $pCarpeta...
asked by 25.09.2018 / 12:34
2
answers

Take value input range and print it on a div

I'm wanting to show some price data through inputs and javaScript. Select products <select class="form-control corrigForm" name="maquina" id="maquina"> <option value="0" disabled selected>Seleccione una Maquina...</optio...
asked by 26.09.2018 / 09:38