Questions tagged as 'javascript'

2
answers

How do I get the ID of an element with its border?

What I would like to do is to obtain the id of an element that has a different edge, in this case its edge is red, to be able to process it in another method. Current code: if ($('#txtNombreP').hasClass('borcolo')) { alert('El elemento...
asked by 23.02.2017 / 21:24
2
answers

Obtain properties of an object which belongs to another object

Greetings. I've been trying to know how to get the properties of an object that is at the same time inside another object. This comes as a result of a programming book. The code is as follows. 1st we have the object: function Co...
asked by 22.02.2017 / 17:06
3
answers

Show what is selected from a select

How to display data in a <input> of JavaScript, according to what is selected from <select> ? <script type="text/javascript"> function mostrarprecio() { if (document.getElementById('pizza').value = "0")...
asked by 15.10.2016 / 20:48
1
answer

Two linked selections (Country and Province) that do not link

I have two selections, one I charge the countries, in the other the provinces that "reacts" according to the country that was selected first. Just consulted how to bring from a BD the code of a country and make that select countries show me the...
asked by 29.07.2017 / 15:42
1
answer

error in changing fontawesome icon

I have several buttons in a foreach in php <table class="table-mp3 center-block" data-directorio-album="ideas" id="reproductor"> <?php foreach($canciones as $id => $cancion):?> <tr class="fila"> <td> <!--...
asked by 07.08.2017 / 19:30
2
answers

Facebook login and Registration in same step

I have the following situation: The service I have is half functioning. I did not do it, so I want to modify it a bit so that I do two steps in one, that is, currently when I click on the button that I have for Facebook it only registers bu...
asked by 29.10.2016 / 04:49
2
answers

Equivalent in javascript for printf of C

Something that happens to me very often is to need to format a string for it I end up concatenating several chains manually, my question is if there is any implementation of printf in javascript for those who do not know that printf...
asked by 18.08.2017 / 17:56
1
answer

Animate objects in scroll and stop them when stopping the scroll

I want to make this code work like the attached GIF when the user scrolls and stops when it stops scrolling. I've been trying with a sequence of "IFs" but it is blocked and I do not know how to solve it ... $(window).scroll(function(flec...
asked by 20.09.2016 / 17:40
3
answers

Edit document doc (x) with node.js / javascript

I am trying to get the data collected from the user sent to a doc (x) text document stored on a server, so that the data completes a template. So far I have only found an Office API for JavaScript, but I'm worried about compatibility issues or p...
asked by 15.07.2017 / 13:40
1
answer

Disable holidays on a datepicker

How can you specify some days of the datepicker to disable them? for example, Christmas days, holidays or any other? I have the code for now like this: <script> function nDates(date){ var nFechas = false; $.a...
asked by 16.08.2017 / 22:17