Questions tagged as 'jquery'

3
answers

Same function for different events of different elements. jquery

I have several HTML elements that I want to execute the same function, in different mouseover, click, etc. events. I did not want to repeat the same code for each of the elements. Example: here I apply in the change event of a select, but I w...
asked by 05.12.2018 / 16:58
2
answers

Cursor 'wait' in javascript

I'm trying to put the cursor in 'wait' mode but I have no result. Here is my code: $(document).ready(function () { $("#btnTerminar").submit(function () { $(this).css('cursor', 'wait'); setInterval(function () { $...
asked by 26.12.2018 / 17:53
3
answers

Control whether or not to change the value of an input

I have this and it works for me, I skip the alert $("#TextField").change(function(){ alert("El campo ha cambiado"); }); But now I try to make the alert jump depending on the value if it changes or not I've tr...
asked by 28.09.2018 / 10:56
2
answers

position content according to the election

I have a little problem when positioning elements; that is, I want to click on a inputs radio show me x content according to the value that corresponds. For this I add the same name to all input radio because I only want to choos...
asked by 30.09.2018 / 21:51
2
answers

Problem with AJAX and jQuery

Hi, I'm new to AJAX and Jquery and obviously I'm practicing. It turns out that I have the following code. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="w...
asked by 21.01.2018 / 17:08
1
answer

Put html on a div with jQuery

Is there anything in jQuery to do the following? document.getElementById('ejemplo').innerHTML+= '<div> HTML de ejemplo </div>'     
asked by 21.08.2018 / 01:09
2
answers

How to open a modal that is out of function, jquery?

I have the following function that opens a modal $$('.page[data-page=selecciondireccion] [data-action=change-quantity]').on('click', function(e) { e.preventDefault(); var el = $(this).closest('.swipeout'); var el_product_quantity =...
asked by 30.08.2018 / 21:10
1
answer

How to execute a datepicker in an input I got with ajax?

I have a web page where in some parts I load content with ajax , in one of these parts, I load a form in which to have the focus a input , a datepicker opens. AND The problem is that when you bring it with ajax this...
asked by 12.01.2018 / 19:24
1
answer

error ajax function

I have this code in a php file: <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <?php //Tab...
asked by 16.11.2017 / 18:18
2
answers

Datepicker Dates - Do not open Calendar

I am making an online booking website, and I would like to put on a div the number of nights that the guest will stay at my hotel. My question is this: If I select an entry date (check_in), which automatically checks out on check out date, I...
asked by 14.11.2017 / 23:15