Questions tagged as 'javascript'

1
answer

How to move the decimal point to the left n spaces with Jquery or JS?

I have the following code: $('#txtFederalCantidad').mask('00000000', { reverse: true }); valorFederal = $('#txtFederalCantidad').val(); $('#txtMonto').mask('00000000', { reverse: true });...
asked by 19.07.2017 / 15:16
1
answer

enable and disable fields

I am finishing a project and would like to see how to enable and disable a text field depending on the radiobutton that the user selects. I already found a code in the forum and it is what I want only that my questionnaire is filled with an a...
asked by 20.02.2018 / 15:40
2
answers

Problem filling object with node and mongodb

I have the following function function getParadas(req,res){ var find; let paradas ={ paradasMetro:[], paradasCercanias:[], paradasBus:[] } var find1= ParadasMetro.find().sort('nombre_parada'); var find2= ParadasCercanias...
asked by 10.08.2017 / 18:44
1
answer

Keyup events (DOM)

The goal is that when writing something in the input, it is also written in the paragraph using onkeyUp. However it does not work window.addEventListener('load', iniciar, false); function iniciar() { var titulo = document.getElemen...
asked by 09.08.2017 / 15:09
2
answers

Pass HTML table data to servlet

Greetings, I have the following table in which I am adding items. <table class="table table-hover"> <thead> <tr> <th>Codigo</th> <th>Descripcion</th>...
asked by 02.10.2016 / 22:28
1
answer

Are there differences between access using charAt or bracket?

As of this another question on the site and its answers, I had a question about how to access the characters of a chain. On the one hand it is suggested to use charAt (eg cadena.charAt(0) ) to access the character that is in...
asked by 25.04.2018 / 17:27
1
answer

Is it possible to create an HTML table using the structure of a JSON?

I'm trying to create a table using a JSON file. What I'm looking for is to create the table based on the structure of the JSON, for example, I have the following JSON: { "Persona":{ "nombre":"Juan", "edad":28, "Residenc...
asked by 21.05.2018 / 01:50
1
answer

var geochart options google does not work

I am working on geochart, although the map is correctly generated the color optionsAxis, title, backgroundColor, datalessRegionColor and defaultColor are not reflected in the map. google.charts.load('current', { 'packages': ['geochart...
asked by 21.06.2017 / 21:04
2
answers

Check that there is a word on a div and then change its class

Suppose I have a div with a string of characters and I want to see if there is a specific word and do something: $('.container-text:contains("text")').addClass('container-text-right'); But how do I check if I want him to check more than one...
asked by 03.10.2016 / 15:42
3
answers

Detect text between open and closed keys in javascript [closed]

How can I detect when a key { opens and when } is closed? What I want to achieve is to detect the opening and closing of the keys, but I would also like to be able to detect content within them. Example: {#f66} o {red} E...
asked by 28.11.2016 / 01:02