Questions tagged as 'jquery'

2
answers

Apply a style to the single pulsed element

I have a problem, I am using jquery, and I need that when I press an element a style is applied, the problem is that all the elements have the same class and I can evaluate it with the event object that I receive the function, but that's only wh...
asked by 15.03.2018 / 01:19
0
answers

help with autocomplete in dynamically created elements

I appeal to you because I have not been able to implement the autocomplete in dynamically created elements with jquery, I do it in the following way. $('#addMarcaTabla').click(function () { var html = ''; html += '<tr class="...
asked by 30.01.2018 / 21:23
4
answers

How to get the answer of an asynchronous call (AJAX) out of it?

I currently have this function: function devuelveButaca(posicion){ var array = posicion.split('_'); var row = array[0]; var column = array[1]; var planta = $('#plantaField').val(); var resultado = ""; $.ajax({ t...
asked by 22.12.2015 / 14:03
3
answers

event to control the doubleClick

I have managed to perform a function in the first click function s(){ $('div').addClass('s'); $('div').css({display:"block"}); console.log("click"); } <script src="https://ajax.googleapis.com/aja...
asked by 05.03.2018 / 02:18
1
answer

Accept letters and numbers in a text type input

Good morning, I have this code that only allows the use of numbers. $('input[name="39"]').bind('keypress', function(e){ var keyCode = (e.which)?e.which:event.keyCode return !(keyCode>31 && (keyCode<48 || keyCode&g...
asked by 03.12.2018 / 23:10
2
answers

How do I prevent it from closing inside the container?

I EDIT THE QUESTION FOR IT TO BE CLEAR. I expressed myself fatally and mixed several questions. Question 1 Good, how can I make it so that it only closes, when I click outside (or on the button) and everything returns to its original s...
asked by 26.10.2017 / 12:04
1
answer

e.preventdefault does not work in submit

I have a simple form with two inputs and a button to send it. I am trying to make the submit not work by default to be able to do things with the data before sending it to the server but, I do not know why, I can not avoid the submit....
asked by 16.04.2018 / 17:03
1
answer

Removing data attribute and adding it dynamically with jquery but still in the sun?

I'm trying to check errors on the server side and this will bring me a number depending on the type of error, the problem is that when editing remove and put a data attribute to then check with the focus, I've already tried what is commented, bu...
asked by 17.06.2017 / 04:34
2
answers

Enter data in an HTML table using JavaScript jQuery

Hi, I am new to HTML and I need to perform the following exercise: given the following code, I need to implement javascript to be able to add the data to the table. Also, when you add one, you can delete it. Finally, you must count the number of...
asked by 06.09.2017 / 23:59
1
answer

How do I detect all changes in an input type of a form?

Hi, I have this form: function balidatu(){ var pas1 = $("#pass").val(); var pas2 = $("#passC").val(); if(pas1 != pas2){ alert("Pasahitzak berdinak izan behar dira."); return(false); }else{ return(true);...
asked by 21.11.2017 / 15:05