Questions tagged as 'jquery'

2
answers

Convert dynamic element into clickeable

I have the following element in my project: Individual code for each box <div class="col-md-3 col-sm-6 col-xs-12"> <div class="info-box bg-aqua"> <span class="info-box-icon"><i class="fa fa...
asked by 18.02.2018 / 19:23
4
answers

How to know which div was clicked without static id?

I want to perform an action when I click on a div, but that div is generated dynamically according to the records of the BD, so its id could always vary. For example:    id="identificador1", id="identificador2", id="identificador3"...
asked by 08.02.2017 / 18:58
2
answers

Problem with JQuery click event

I have this code: var elementos = $("#caja1").children("a.list-group-item"); var elementos2 = $("#caja2").children("a.list-group-item"); function asignarClick(elementos) { for (var i = 0; i < elementos.length; i++) { $(ele...
asked by 25.05.2017 / 15:35
3
answers

Add values from a JSON array

I have this JSON array: [{"amount":"500"},{"amount":"750"},{"amount":"250"}] I have tried to add the values it contains with: $.getJSON('http://api.com..../water.php',function(data_water_tot){ console.log(data_water_tot); $.each(data_wat...
asked by 26.05.2017 / 16:42
2
answers

Change of option of a select by text and no attribute

With this <select> <select id="idselect"> <option value="1" data-msg="111">Personalizado</option> </select> To change the option to <select> in jquery I have for example these options $(...
asked by 03.11.2016 / 18:01
2
answers

Background photo that moves with hover mouse

I want to make an effect like the one in this Wordpress theme: link In the section where there is as a gallery of images and says things like "on the mountains", "take a flight", "a night to remember", etc. when you hover with the mouse...
asked by 06.11.2016 / 18:13
2
answers

How to format number (with points in values of one thousand (1,000) to a jquery datatable

I can not order a numeric column, I'm ordered but the points are taken as decimals and I need the format to be the opposite. Thanks for the help!     
asked by 27.10.2016 / 16:19
1
answer

Identify a span tag that is inside a string with jquery

Good morning. I have a function that highlights the text of a list, according to the word (s) by which the user searches. The problem is that when they write two words for example "Juan Carlos" I want the Juan and Carlos to change color in the l...
asked by 12.01.2016 / 20:15
2
answers

Problems integrating jQuery Validator with AngularJs

I have the following directive, which I got on the web to use jQuery Validator with Angularjs app.directive('ngValidate', function () { return { require: 'form', restrict: 'A', scope: { ngValidate: '='...
asked by 20.01.2016 / 01:10
3
answers

Format result Price

As I can format an integer, I need to visualize it as a price. r = 100000; comision = 10000; totalp = r+comision; document.getElementById("total").value = totalp; Clearly the sum gives 110000 Resultado que quiero obtener en e...
asked by 09.04.2017 / 21:48