Questions tagged as 'jquery'

1
answer

Problem with click event

I need to get the click event of a button from class btn-remove , however, it is giving the following error:    Uncaught ReferenceError: $ is not defined <html> <head> <meta charset="utf-8"> </head> &...
asked by 23.09.2018 / 19:15
2
answers

jQuery mask is not working

I want to put a mask on the phone number but it is not working, I've tried it anyway, with different ways to call the jQuery and jQuery.mask file. I'll show you how my code is, am I doing something wrong? (in another project I did exactly that w...
asked by 30.08.2018 / 13:37
2
answers

How do I set an element via jQuery / Javascript?

   I'm doing an integration with a social plugin and am having a problem. My code: linkedin : function(self){ var sett = self.options.buttons.linkedin; $(self.element).find('.buttons').append('<div class="button linkedin"><s...
asked by 20.12.2014 / 00:38
2
answers

Why is Ajax only working the first time?

I have a table with some values stored in it. In this table I also have two buttons where I can hide the values, leaving only the name of the table and another button that filters the information I want. My problem is that the filter button i...
asked by 15.01.2015 / 13:14
2
answers

How to get object position (index)

How to get the position of the object that was found in $ .inArray ()? var obj = [ { cidade : [ { nome : "Maringá" , uf : "PR" , } , { nome :...
asked by 10.12.2014 / 14:27
2
answers

Select dynamic with JQuery

I'm a beginner in working with JQuery, and I'm having a hard time making a% dynamic% working. When choosing the first select a value the second select should only display the select with options terminated by the valu...
asked by 09.02.2015 / 18:16
1
answer

Make animate with scrollTop

I want the div #parte3 to be display:block when you reach scrollTop = 1110 . My syntax console.log($(window).scrollTop(), $(window).scrollTop() > 1110); if ($(window).scrollTop() > 1110) { $("#parte3").animate(...
asked by 12.01.2015 / 11:20
3
answers

Receive result of an ajax as return

Within the following scenario: funcao1 = function() { $.ajax({ success: function(data) { return data; } }); } funcao2 = function() { var dados = funcao1(); } Is it possible to re...
asked by 08.11.2018 / 19:08
1
answer

currency formatting error in jquery

I'm creating a mask in my field like this: $("#ValorMultaSt").mask('000.000.000,00', { reverse: true }); When I type some value works perfectly, however when I perform any action on the screen it puts a "." on the front, as in the example:...
asked by 08.11.2018 / 20:47
3
answers

Optimize how to remove element classes

I have a sequence of rows to remove classes from multiple elements. Would there be a more sophisticated way, perhaps with less code to accomplish the same as the code below? $(document).find('.control-corpo').removeClass('control-corpo');...
asked by 26.05.2018 / 21:53