Questions tagged as 'javascript'

1
answer

Thousands separators

I have the following structure. function agregarDetalle(idarticulo,nombre) { var cantidad=1; var precio_compra=1; var precio_venta=1; if (idarticulo!="") { var subtotal=cantidad*precio_compra; var fila='&l...
asked by 03.02.2018 / 16:52
1
answer

Show ajax result

Good morning, I have the following doubt. I'm taking the first steps with javascript and I'm doing a query using ajax and I have the following problem with the code. $(document).ready(function(){ $(document).on('change','#organica',functio...
asked by 01.02.2018 / 23:04
3
answers

Load different files with .load ()

What I want to achieve is by js - jquery and / or ajax generate a switch similar to PHP using buttons in <nav . That is: $(document).ready(function(){ $(".click").click(function(){...
asked by 03.02.2018 / 01:28
1
answer

Force change of text color using TweenMax

I have some hyperlinks with the CSS color with the property !important , because I need to change its color by default, which gives them another style sheet that I can not / should modify. .elementos { color: #fff !important; } And...
asked by 12.01.2018 / 17:58
1
answer

How to make the page to be loaded by a menu just below the menu

I would like to know how I can make the page that loads for a menu go out just below this. I leave an image to see how I get. As you can see the page that is loaded should appear just below the menu. This is the menu code <...
asked by 13.01.2018 / 03:39
2
answers

Problem with background slideshow JQUERY

Hello good day I have a problem with the installation of this plugin. Here is the tutorial I'm using: vegas And that's how I got it: $(document).ready(function() { var imagecollection = [{ src: 'https://i.stack.imgur.co...
asked by 15.03.2018 / 14:34
1
answer

Java: Use GET and POST in the same Form

What I want to do is send the parameters from Form to POST and then through the method GET consult the BBDD for room availability and send that result through Ajax (Vanilla Javascript) to HTML But from...
asked by 13.03.2018 / 19:37
1
answer

Jquery how to take the text of a paragraph?

Jquery how to take the text of a paragraph that does not have id when there are several | in the document. example: <p> este es el texto </p> <p> este es el 2º texto</p> var texto=$('p').text(); $("#muestra").append(te...
asked by 13.01.2018 / 10:21
1
answer

How to make a repeater in wordpress with a row of two columns and another of three

Hello I'm wanting to make a repeater in wordpress but I had a problem with the diagram done in bootstrap. I attached an image of said example The code that I implement is the following: Although I assemble a repeater what makes me repeat the...
asked by 15.03.2018 / 19:20
1
answer

Datatable Error Can not read property 'mData' of undefined

I am showing the data from my Database in a table using javascript the data is displayed correctly, but the DataTable options are not being displayed. In the browser console I get this error Uncaught TypeError: Cannot read property 'mData'...
asked by 27.12.2017 / 22:31