Questions tagged as 'jquery'

0
answers

How to get the value of some combos in my Controller?

I have three combos, which when loading the page combos 2 and 3 are disabled, until you select an option of combo 1 activates 2, and when choosing combo 2, activates 3. What I want is to recover the value of the option that has been chosen an...
asked by 31.08.2018 / 05:12
1
answer

Change span color depending on whether the input is empty

$(function(){ $('.contactanos :input') .change(function(){ var $input = $(this); var $span = $('.form__input-focus'); if ($input.val() === '') { $input.css("background-color", "#fff"); $(this).data("span").css("bac...
asked by 08.11.2018 / 16:24
1
answer

Show div while hiding others (jquery)

I want to show some elements by doing click in a botón , but I want that if you are already showing one element and I give click in another botón hide the previous element and show the new one. I did something like...
asked by 14.08.2018 / 18:00
1
answer

Get id when loading a jquery function

I'm trying to get the id of an image by loading the page I'm not doing well here is my code var id; function get_id() { var id= this.id; $("#result").html(id) } $(document).ready(function(){ get_id() }) <!DOCTYPE h...
asked by 15.08.2018 / 15:41
1
answer

How can I count the number of times a class of my html element changes?

The case is as follows: I have 3 elements of the type div that makes a carousel with boostrap and in those divs there is a default class called item and when the div is selected or visible to that item another class is ad...
asked by 03.08.2018 / 22:14
3
answers

doubt with the $ .get function of the jquery library

I am learning javascrit using the jquery library, and I have not been able to solve the following problem, which consists of a login that the user requests and constrasena, and if they agree with the user that is defined in a php file I should s...
asked by 04.08.2018 / 01:09
2
answers

How to send input values type "hidden" ajax?

The question is the following one, I am elaborating a project of degree I am doing sending of values stored in "hidden" inputs, but as they are different forms I want to try to make a single shipment, which sends me only the data of the form of...
asked by 02.09.2018 / 19:42
1
answer

jquery function calculate dynamic percentage

This is the problem: I have #producto_1 , #producto_2 and #producto_3 , each one has inputs to fill in automatically. The way to calculate the net is: bruto*merma/100 , as I have to add more #producto_n...
asked by 02.09.2018 / 21:32
0
answers

How to reset a value of a picker, framework7?

Good morning, I currently think of a picker in the following way: myApp.picker({ input: '#departamento_alterna', rotateEffect: false, onClose: function (picker) { console.log(picker.value) Cod_de...
asked by 29.08.2018 / 20:56
0
answers

Error in Uncaught TypeError: Can not read property of undefined

I have a script with jQuery in which performs the 'CRUD' with a form and DataTables . To load data the table I use the following method: var cargarDatos = function () { $("#update_container").slideUp(); $("#add_container").slideUp(); var t...
asked by 20.07.2018 / 20:20