Questions tagged as 'jquery'

2
answers

It is possible to know that an option was selected in javascript event

I know that it is possible to get the value of a select selected with: $("id option:selected").val() But I wanted to know if it's possible to catch when any of this select is selected via an event, such as selecting a optio...
asked by 24.08.2018 / 15:47
3
answers

Javascript / Jquery - Calculation of days between two dates "DD / MM / YYYY" [duplicate]

Friends, good afternoon ... next, the code below, takes two dates in a calendar, in the format of DD/MM/YYYY $('.two-calendars').on('pickmeup-change', function (evt) { var range = pickmeup(this).get_date('d-m-Y'); if (range...
asked by 15.08.2018 / 19:58
2
answers

What is the parameter THIS? [duplicate]

Something I always see in many code out there is the this parameter. Ex: $(this).funçao-variável... I've already been told that this serves to "reference" something. But it was not very clear. Does anyone know what the...
asked by 01.03.2016 / 18:15
1
answer

move from JQuery to CSS3

Any way to do this in CSS3? if(window.innerWidth <= 1000) { var ecra = window.innerWidth; $(".topo").css("height",ecra*0.293); } I tried @media screen and (min-width: 0px) and (max-width:1000px) { .topo { height: calc(device-...
asked by 18.10.2016 / 15:14
3
answers

Local communication through online application

I am developing a system for ordering from a snack bar / pizzeria. Let's suppose that the waiter places the order with the Tablet ( Android ) on the customer's desk or the customer goes and requests the receipt ( Windows ). Depending on the requ...
asked by 09.10.2016 / 01:23
2
answers

format value with javascript

I have the following variable: var teste = "006BC953F26DAC56C51D61"; And I'd like to see it when it looks like this: console.log(teste); //006B-C953F-26DA-C56C5-1D61 I'm having problems since it starts with a group of 4 needs and then...
asked by 23.02.2017 / 18:08
2
answers

Problem of encoding servlet, json and jquery.ajax

I created a servlet that returns a simple JSON. I was able to consume the same quietly, however putting the contents in a div was as follows: 0: �gua 1: a�ucar 2: sal 3: canela 4: �leo When looking at the return of the servlet thro...
asked by 15.11.2016 / 23:28
2
answers

How to add the animation to the top of the page using the easings library?

The search for effects to add on a button "Back to Top" found this jQuery library that uses CSS transition , SCSS and jQuery itself to make animations, but I could not add them to the top button, does anyone know? Or do you know of another of t...
asked by 13.10.2017 / 15:57
2
answers

Function .ajaxComplete () executes multiple times

I want to add this function after a .ajaxComplete, but every time an ajax happens, this bolt executes a number of times equal to the amount of ajax that happened. For example, if I click the button in the .chPlus class the first time, the con...
asked by 20.10.2017 / 20:12
3
answers

How to find 2 or more words in a text using jQuery?

Hello, I'm doing a search field where it brings the data of an XML. However, it is only bringing if I type the name in the right order, for example: in xml, the person's name is "Manoel da Silva", but if I only write "Manoel Silva" in the sea...
asked by 10.09.2015 / 20:47