Most voted "jquery" questions
jQuery is a Javascript library focused primarily on DOM handling, event management and Ajax, seeking to free developers from directly dealing with a number of browser compatibility issues.
Learn more…11,371 questions
Sort by count of
-
3
votes1
answer53
viewsIs there a difference between the codes A and B below?
Code A $('#tantoFaz').on('click', function() { /* ....... */ }); Code B $('#tantoFaz').click(function() { /* ....... */ });…
-
3
votes1
answer351
viewsHow to use inheritance and polymorphism when passing a JSON to a MVC C#Controller?
I have a MVC method that takes a client class as a parameter: public async Task<ActionResult> Cadastrar(cliente model) { } Turns out this class has two kids, a class called a person. and…
-
3
votes1
answer285
viewsHow to detect which js file is being used by the class of an element?
I am trying to check which files can be used by the class of a particular element. Example: <script src="arquivo1.js"></script> <script src="arquivo2.js"></script> <script…
-
3
votes1
answer750
viewsHow to change the class of an element - Font Awesome
I have an icon of Font Awesome on which I am trying to get the element to be clicked, change the icon of fa fa-plus for a fa fa-minus and when clicking again, the icon goes back to the fa fa-plus.…
-
3
votes2
answers588
viewsAutomatically select text
I’m trying to create a function that traverses any text by selecting letter as the effect of you hovering your mouse by selecting text slowly. I used the select() but it selects all the text.…
-
3
votes1
answer64
viewsHow to delete a term inserted in a form using jQuery?
The code below is part of a function that uses a search term in a text field to extract images from the Flickr site. After typing the word to do the search, it inserts the text below the field, just…
-
3
votes1
answer304
viewsjQuery perform a single action (method) for multiple elements
I have a form where an action can be executed several times by different elements, I wonder if you have how to put everything in a single call. For example: $("#campo_01").change(function(){…
jqueryasked 8 years, 12 months ago Eloi Martins 71 -
3
votes1
answer1666
viewsLooping jquery setInterval
I’m doing a slider and I need that when the images finish passing, they start again but I’m not getting it. Someone could help? JS $(function(){ // Buttons Hover Effect buttonsHover(); function…
-
3
votes2
answers6191
viewsConsume API (JSON) in form fields, how to do?
Hello, my fellow programmers. I would like a help. I have to use in a project the API that contains the Table Fipe data in JSON format (http://deividfortuna.github.io/fipe/). I want my form to have…
-
3
votes2
answers2719
viewsAppend/Prepend in DIV with fixed child - jQuery
How do I append/prepend a div that has a fixed child using jQuery. For example: <div class="container"> <div class="placeholder"></div> </div> When giving the first…
-
3
votes1
answer723
viewsHow to calculate Total via Javascript
To show the items of a sale I use a Json to show the data using this script. <script> $(document).ready(function () { var CodigoVenda = @ViewBag.CodigoVenda; $.ajax({ type: "GET", url:…
-
3
votes0
answers103
viewsHow do slideshow run when the "new tab" tab is open?
I’m trying to make a slideshow script run every time a new tab opens in Google Chrome. I need to do the following execution: 1-Make a slideshow script run 10 images [here put only 3], fade, every…
-
3
votes2
answers729
viewsHow to invoke methods directly in jQuery’s HTML elements?
In javascript I can invoke the methods normally, but when using jQuery, it does not work. Ex.: <a href="#" onclick="meuMetodo()"> Link </a> In javascript methods work like this, but in…
jqueryasked 8 years, 11 months ago Arthur Cáceres 33 -
3
votes1
answer60
viewsHow to add a new node to an XML with jQuery?
How can I add, with jQuery, a new node <nota ordem="4"> with the default nodes that are in the example that I am showing in the XML file below (name, data, drive, reference and text)? I wanted…
-
3
votes1
answer199
viewsHow to put 3 slides together in Bxslider?
I couldn’t do it myself, I wanted your help. I would be very grateful if anyone could solve this problem for me. This is my slide picture. This is my HTML code. <div class="main"> <div…
-
3
votes5
answers2126
viewsfunction to count Divs quantity
I need to create a function to check the amount of Divs on the screen and insert a class within the fourth for example. These Divs are created dynamically.
-
3
votes1
answer857
viewsPlace header in ajax get method
Good afternoon, I have the following piece of code: function getData(){ var url = "http://teste.com"; var data = ""; $.get(url, function(response){ serverResponse = response; for(i in…
-
3
votes4
answers3189
viewsAccess JSON with multiple JS objects
I have the following JSON [ { "id": 1, "nome": "Matheus Almeida Siccenna", "cpf": null, "matricula": { "id": 555, "empresa": 1, "unidade": 0, "descricaoUnidade": null, "curso": 1, "descricaoCurso":…
-
3
votes1
answer399
viewsHow to improve a star rating code?
I’m with a website and certain points hold me, as this evaluation, is not very cool this script, someone fit can improve for me or tell me what can improve, to make the code more organized, check if…
-
3
votes1
answer320
viewsCapture dynamically created element index
I intend to create a seemingly very simple function. My code is this: var coordenates = $(".coordenates"); var add = $('.add'); var remove = $('.remove'); var newCoordenate = '<div…
-
3
votes1
answer639
viewsShow week only with Fullcalendar events
The Fullcalendar has the button of Prev and Next that advance and return the weeks, if it keeps advancing it goes showing the weeks infinitely, if it returns also. I need a function that allows…
-
3
votes1
answer178
viewsJavascript set value of one field in others
I have the following code below <script type="text/javascript"> function getValue() { var x = document.getElementById("NuJaneiro"); document.getElementById("NuFevereiro").value = x.value; }…
-
3
votes2
answers1708
viewsGet all the information from the file that came from the input file
I know it is possible in PHP to receive a certain file and get all the information from it, such as extension, size, date, among others. I would like to know how it is possible to get this…
-
3
votes1
answer98
viewsValidation configuration in dynamic fields with groups
Scenario: The client today has a place in the system, specific to register fields for a process that will be automated these fields that are registered can be (selects, checkbox, radio, textarea and…
-
3
votes2
answers516
viewsHow to return a part of a string (an html element) in php?
I am making a "technical resource" to be able to return the status of the SEFAZ servers of issuing tax notes using PHP. For this, I have until now the code below: function get_content($URL){ $ch =…
-
3
votes1
answer158
viewsDynamically Change Bar Percentage
I have this bar percentage and I wanted to dynamically change the value of it only I’m not getting it. Bar code <script> $('.bar-percentage[data-percentage]').each(function () { var progress =…
-
3
votes1
answer101
viewsDiv’s Auto Dimensionaveís
I’m having a question, I’m creating a page html where I’ll have 3 columns, however the user will resize her any way she wants, however automatically as divs will have to themselves auto adjust! I’m…
-
3
votes2
answers431
viewsGet all the ID of the elected in jQuery
Well I remove CSS from a certain element like this: $('#menu' + this.id + '').removeClass('open'); What I need to do and remove from all elements #menu less that of the informed. I tried to do so:…
-
3
votes1
answer814
viewsSort by number with Datatables
I’m having a problem with the plugin DataTables in order of numbers. I have a list of numbers: 1 2 3 4 ... 10 11 12 The problem happens because of the digits. It sorts type 1 10 11 12 2 3 4 ... The…
-
3
votes2
answers1453
viewsas a tool to leave a FULL SCREEN slide
how do I leave a Carousel on bootstrap full screen for mobile devices because on the desktop it stays the way I want occupying the whole screen without leaving white space on the devices it does not…
-
3
votes2
answers783
viewsSelect chained using only HTML and jQuery
Hello, Community! I have two selects in HTML one with the regions of Brazil and the other with the states. How do I fit them without using a template (PHP, Java, C# etc), only with HTML (the…
-
3
votes1
answer130
viewsLoading screen only when necessary
I made a loading screen so I would like to make it work only when it is a time-consuming action and not with any load. JQUERY <script type="text/javascript"> $(window).load(function() {…
-
3
votes1
answer199
viewsImage loses effect of Camanjs when manipulating canvas
I have a canvas, in which I manipulate images drawn on it with the plugin Camanjs and works perfectly. However, if I manipulate the canvas manually (without the help of the plugin) the image loses…
-
3
votes1
answer132
viewsDate in odd fractional format 0.00xxxxxxx
I get that date from the comic book: 0.002976190476190476 I would like to move to this format: dd/mm/yyyy, using javascript pure or jquery. How I do? Here is the ASP that assembles the select:…
-
3
votes1
answer510
viewsHow to create fields dynamically when selecting a value in the checkbox?
In this script below it counts checkbox marked. How can I make it besides count, also add new fields <input type="text"> according to the quantity of checkbox marked For example: I marked 5…
-
3
votes2
answers1751
viewsLike counter with JS/Jquery?
I have several cards on a page and each card has an equal facebook like option, when I click on the image the counter increases 1, however this counting in all the cards and not only in what I…
jqueryasked 8 years, 10 months ago user27585 -
3
votes1
answer456
viewsCheckbox value in Hidden input field
I have a problem with checkbox manipulation with jQuery. I have several fieldsets with checkboxs, and I want when the person clicks on a check the check value is added to the Hidden input of each…
-
3
votes1
answer474
viewsCan you tell the response time of an AJAX request with jQuery?
I wanted to know if there is a function that returns the AJAX request time in microseconds, because I need to get this value for the project I am developing.
-
3
votes1
answer756
viewsLoad updated page using method get jquery mvc Asp.net
I have a demo page where I organize a to-do list.. wanted that when it relapses it already comes updated with the tasks already posted previously <html> <head>…
-
3
votes0
answers1130
viewsRotate image while maintaining aspect ratio
I need to rotate an image and maintain the ratio relative to the parent DIV without 'escaping'. I’m just using rotate(90deg) and the original image properties, as in the example. There are some…
-
3
votes3
answers85
viewsJquery ischecked does not work
I have the following checkbox: <input type="checkbox" name="responderam" id="responderam" value="1" onchange="Filtra()" /> Mostrar apenas quem respondeu And the function it calls will update…
jqueryasked 7 years, 3 months ago WitnessTruth 1,017 -
3
votes2
answers44
viewsAllow only delete key
I have the script below, which blocks all typing in an input, forcing the user to use the DatePicker available: $(".readonly").keydown(function(e){ e.preventDefault(); }); In this same script, there…
-
3
votes1
answer2591
viewsHow to create a JSON using jquery?
How do I create a JSON with several different names? Equal: [{name: "john"}, {name: "peter"}] Could someone give me an example? I tried to do so, but why does he always return the last item twice?…
-
3
votes1
answer410
viewscheckbox "select all" jquery and Cakephp
Hi, I have one foreach in a table that lists several checkboxes. I need to do a function jquery that by clicking on the checkbox of <th> selecione todos the next checkboxes <td>. Look at…
-
3
votes1
answer515
viewsClick Link Inside Clickable DIV
In the code below comes demonstrating a div clickable in case it is mobile. When you go full has an icon that appears inside the div when passing the mouse over, hover. HTML <div class="item"…
-
3
votes2
answers52
viewsClassifying li in a div
Folks I’m needing to alphabetically classify a div, use the following strategy, put in a div with display: none I have read them all, so after inserting all the html, I do the while for as long as…
-
3
votes1
answer85
viewsHow to repeat a failed ajax query?
The problem is that sometimes the consultation runs out of time or even gives error, so I want to automate in these cases. $.ajax({ type: "GET", url: 'inserindodados.prisma', data:…
-
3
votes1
answer876
viewsHow to add the logo to the fixed menu after a certain scroll on the page?
As in this site for example: After fifteen. Just like in the photo, I want the logo to come and from a certain scroll, appear the 'new' menu, along with the photo. I don’t know how to put the photo…
-
3
votes1
answer83
viewsFlot Charts, default x-axis from two days ago until now (last 48 hours)
I have an app that features a chart whose dados from the database, where the date columns store a Unix timestamp, the data is received as a JSON. This graph works well but I would like the X axis to…
-
3
votes1
answer55
viewsStreamline language to placeholder
I make a request ajax to search in the bank to bring the language configuration, type, EN, PT, and so on... I want placeholders to be changed according to the chosen language. For example, instead…