Questions tagged as 'jquery'

1
answer

Retrieve DOM element from a column

I have a Jquery event that captures information from a table row (I am using Jquery DataTables). var linha = $(this).parents('tr')[0].innerHTML; The value returned is this: <td class="text-center sorting_1">118587</td>...
asked by 24.07.2018 / 15:06
2
answers

JS - How to get the selector of the Element or its tree?

Hello, I'm trying to do a function that when I click on an element I can get either the tree (all parents) of the element (up to the body or a specific tag), or get something similar to "Copy -> Copy Selector "from DevTools. Forexamplewhe...
asked by 30.08.2018 / 16:10
1
answer

TypeError: $ .event.props is undefined

I have a slider like this: link In my case it is displaying the following error in the console when I click the drag / drop button: TypeError: $.event.props is undefined[Learn More] jquery.ui.widget.js:20:361 _trigger http://localhost/201...
asked by 30.08.2018 / 19:56
1
answer

Capture rel of each clicked link and go adding in the value of an input hidden

I have the following structure, I need to create something "similar" to a shopping cart. When creating in a link I need to get the rel of that link and go adding in the value of input hidden, but I do not want to repeat values, eg: If I clicked...
asked by 29.08.2018 / 20:39
2
answers

Separate result within each

I have an ajax function where I read the data inside a $ .each (), the image above contains the result of this each. I am trying to separate this data into two arrays, the data that matches the question and the graph, since I will generate...
asked by 28.05.2018 / 19:09
1
answer

Carousel Plugin with JQuery [closed]

I need to put a Carousel (Slider) on a homepage, and I thought about doing it with JQuery, can someone tell me some plugin to do this, other than the bootstrap carousel?     
asked by 17.05.2018 / 16:55
1
answer

Close dropdown with ESC

Would it be possible to make the dropdown below, close it with the ESC key? $("#jq-dropdown-1").on("contextmenu", function(event){ event.stopPropagation(); var a = $("a[data-jq-dropdown='#jq-dropdown-1']"); if(!$...
asked by 16.05.2018 / 20:08
1
answer

Check the predominant color in the image

I have the following code that I will put below, which is responsible for picking up the image from which the user places. In this case, the variable img returns me only the url of the image. I wanted to get the image and see what color p...
asked by 17.05.2018 / 03:08
2
answers

Enable inputs as required

How can I make each input field filled in the next one appear in jQuery? It would be so, select unit then the user selects the period of the party, after choosing the day the last field to choose the type of party appears function marcaDes...
asked by 21.05.2018 / 21:41
1
answer

How events work in jquery

I'll show examples of just the click event to make it simpler to explain, but this question is about any jquery event. When I started using jquery I only used the click event as follows: $("button").click(function(){ alert('ok'); })...
asked by 15.05.2018 / 22:22