Questions tagged as 'javascript'

1
answer

C # - Scroll JS / JQuery after an OnClick event

I have a linkbutton with an onClick event that does something in code behind, but I would like it when I return to execute the on click event, there would be a javascript that would move the scroll to a particular div. I do not have much idea...
asked by 23.09.2018 / 12:48
3
answers

Convert INPUT type checkbox to INPUT type text after clicking

I have the following checkbox and I want to change it to text after clicking <input type="checkbox" name="nutriente_f1<? echo $registro6['ID_NUTRIENTE']; ?>" id="nutriente_f1-<? echo $registro6['ID_NUTRIENTE']; ?>" onclick="$nut...
asked by 12.09.2018 / 19:27
1
answer

Extract coordinates of an address with the Google Maps API

I'm building a map with custom markers taken from a MySQL database I have the following var in js with different coordinates var locations = [ {lat: 41.641581, lng: -4.780962}, {lat: 41.681581, lng: -4.740961},...
asked by 14.09.2018 / 08:07
0
answers

Update records with a for

$("#bntSimular").click(function () { debugger $.ajax({ url: "sendTophp/consultarEjeActual.php", type: "POST", success: function (ejecAct) { ejecucionActual = ejecAct; console.log(ejecucionA...
asked by 14.09.2018 / 15:24
1
answer

add dynamic textbox from a button

I try to generate textbox to calculate a term but I can not get the texbox to go separate and in a single row I get this way I would like it to be this way <!DOCTYPE html> <html> <head> <meta charset="utf...
asked by 14.09.2018 / 16:46
0
answers

Deactivate Select option according to the answer

Hello good morning fellow of the programming somebody knows how to do so that when a person gives him in a select the option if it does not apply it is deactivated function loadQuestions () { $.post('php/cargarPreguntas.php', {}, function(d...
asked by 14.09.2018 / 16:18
0
answers

Error compiling project in Angular

I'm using Angular (version 6) with TypeScript (version 1.6) and when I compile the code I get these errors: Date: 2018-09-13T19:39:25.926Z Hash: 0a25dba23a607e77d976 Time: 5711ms chunk {main} main.js, main.js.map (main) 1.91 kB [initial] [rend...
asked by 13.09.2018 / 20:00
0
answers

touchstart event to replace href

I have the following code: <div id="contiene_sensor"><a href="ver.php" onclick="window.parent.sel(2);" style="text-decoration:none;"><img id="luxecita" style="width:90px; height:90px;" src="img/image.png"/><span...
asked by 13.09.2018 / 21:05
1
answer

Set Value on input element with type="file" and ask for change event

I have an input element with type="file", but I can not set the value to the element, I also want to fire the event change; this is the code: let input_file=document.getElementsById('input'); input_file.setAttribute('value', "C:/images.jpg");...
asked by 13.09.2018 / 21:01
0
answers

make a select of two different values

Good afternoon I have this code but I would like that when choosing a quantity of the select (n6) have a different amount in this case the amount that appears in the value of the select. Thank you in advance for your valuable support. <!DOC...
asked by 22.09.2018 / 21:49