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
-
1
votes1
answer156
viewsjQuery calling an action
I am developing a web site in ASP.NET MVC that uses jquery to control some plugins like spinner, toastr and others. My question is whether I should call Action via jquery to validate the model and…
-
1
votes2
answers264
viewsHow to return the specific element, when using multiple custom share buttons on the same page, using querySelectorAll?
This custom Facebook share button works great when you put only one button on each page. (This is an excellent way to make Ajax and Javascript projects traceable to search engines and social…
-
1
votes1
answer417
viewssetInterval with auto-clearInterval
I’m creating a way to extract data from Twitter without being quoted the values of their API. The best way I found was using the widget that they provide (and that has no quota) and from its loading…
-
1
votes2
answers231
viewsAdd fadein effect to this jquery code
Good morning! I am using the following code to pick up the result of a form and play it on the page without having to reload: <script type="text/javascript"> // Script…
-
1
votes2
answers230
viewsJquery find input containing specific text
Which selector jquery that I use to search for all inputs that contain specific text, for example I have several checkbox with different texts, ai type CA and it searches all checkbox with text that…
jqueryasked 9 years, 2 months ago henriquedpereira 4,415 -
1
votes4
answers490
viewsStart connection to Signalr
I am creating a simple application for C# Signalr studies on VS2015. How do I start the connection without having to define a method in the client? I’m doing it this way: $.connection.hub.url =…
-
1
votes3
answers11171
viewsAdd jquery "loading" effect
I would like to add a loading effect when the person submits the form, and after about 2 seconds, the upload ends and the form displays the result (error or not) I would like to know how to deploy…
-
1
votes1
answer1733
viewsCheck number of clicks on buttons
I have a script with functions to control what each button of an application does. I declared a global variable so that when all buttons are clicked, two actions are triggered: hide a div and show…
-
1
votes1
answer72
viewsJquery does not return second image in the list
Apparently, the code is correct, it’s as follows: { if( $(".ativo").next().size() ) { $(".ativo").fadeOut().removeClass("ativo").next().fadeIn().addClass("ativo") } else {…
-
1
votes1
answer753
viewsAjax does not work on Firefox
Works perfectly in Chrome browser, and other browsers don’t... When I enter the login and password it displays the message "Login Successfully!" and stops the page in Mozilla. See the code: echo…
-
1
votes1
answer2890
viewsHow to make a dropdown menu open by clicking on it and closing by taking the mouse off it
I’ve been looking on the Internet about dropdown menu, I found some very interesting, but I did not find any that do what I said in the title of the question. All menus of the genre I found, to open…
-
1
votes1
answer405
viewsRequest jQuery Post + PHP + Mysql does not save data
I am making a registration via jQuery Ajax, so I created the following function: function salvarCadastro(titulo, form, caminho) { var dadosFormulario = $("#" + form).serialize(); var myData = $("#"…
-
1
votes1
answer60
viewsWhat is jQuery’s Event.namespace for
In the jQuery documentation, there is the explanation of event.namespace. This allows you to use an event (or create an event) specific to jQuery, with a namespace, through a . point and a name in…
jqueryasked 9 years, 2 months ago Wallace Maxters 102,340 -
1
votes0
answers35
viewsMake div visible after encountering another div on the page scroll
How would it be possible to make a div visible after it meets another div in the scrolling of the page, using javascript or jQuery?
jqueryasked 9 years, 2 months ago Munir Baarini 673 -
1
votes0
answers54
viewsHow to make a select that brings me phone numbers
I work at a Market Place for buying and selling. I want to search phones of our sellers in different tables: Comments, Conversations and Items. How can I search only numbers, as long as there are…
-
1
votes0
answers22
viewsComments system without reloading jquery page
Well, I have a comment system, where I have a question. I wanted to know, how can I get someone to send the comment, it appears up without having to reload the page. I know you have jquery in the…
-
1
votes1
answer440
viewsSlide control (in div) with jquery - next and Prev function?
Friends, I need to assemble this slide where I can have a control, that is, next and previous button. In the example the structure is ready, but I don’t know how to implement the previous and next…
-
1
votes0
answers141
viewsBring Older Results with Long Polling
I am creating a system and I want it to bring all the results already recorded in the database, but it only returns the recorded data from the moment I refresh the page, for example if I insert 10…
-
1
votes2
answers648
viewsBack to top button in scroll to top
I have the following question. I created a simple button to go back to the top of the page: <a href="page-top" class="back-to-top">Back to Top</a> <script>…
jqueryasked 9 years, 9 months ago Renan Girotto 51 -
1
votes1
answer251
viewsProblem with "on change" followed by "on click"
I have the following HTML code: <input type="text" id="esc" /> <input type="button" value="Ok" id="ok" /> And jquery/javascript: $(document).on("change", "#esc", function(){…
-
1
votes1
answer558
viewsrecover data from JSON file
I am needing to implement a translation into a plugin called pikaday, which is actually a datepicker, and as the site is multilingual I am trying to implode the i18n. pulling translations from a…
-
1
votes0
answers236
viewsHow to put Swipe touch event on Slick Carousel?
I wanted to know how to add events touch swipe on my slideshow Slick Carousel. $(document).ready(function(){ $('.slideshow').slick({ autoplay: true, autoplaySpeed:4000, speed:800, }); });…
-
1
votes1
answer157
viewsWhat is the best logic to implement sub-menu with mouse events
I am developing this site and for now I have not put any Javascript code in it to make it dynamic. I have a problem that repeats itself in all projects for lack of knowledge of language and logic,…
-
1
votes1
answer1168
viewsFill table with BD data
I have a problem adding an article designation through the code. I have the following: HTML <table class="table table-striped table-bordered" id="vendaTabela" width="100%" > <thead>…
-
1
votes0
answers232
viewsHow to maintain the current state of Gridview with Detail jQuery after Post Back
I am using the following solution for my grid: http://www.aspsnippets.com/Articles/Build-Master-Detail-GridView-using-jQuery-in-ASPNet.aspx This solution makes a grid appear and unlearn as it is…
-
1
votes2
answers672
viewsRemove substring with regex
I got the string: var str = "Quantidade [12]"; I need to recover the string but remove the space and the [12], IE, I need to return only the value: Amount. In case the string is var str =…
-
1
votes0
answers3777
views$. ajax - POST ..... 500 (Internal Server Error)
I am sending a request to a URL by function $.ajax() and I need you to return to me one of the parameters (was, error, Nothing). In the localhost is working correctly, put on the server and returns…
-
1
votes3
answers995
viewsDisable all Dropdownlist Options s less what is selected
How to disable all options of a combo minus the selected value using Jquery. As in the image below: Follow the HTML in the image: HTML <!DOCTYPE html> <html> <body> <select>…
-
1
votes1
answer508
viewsHow to catch Owl Carousel event
I’m using Owl Carousel in the large image, the thumbnails on the left should work as a controler too, but I don’t know how to catch the 'picture change' slide event. How can I do that?…
-
1
votes1
answer341
viewsUnable to read property
I have a problem that seems simple, but I can’t find the solution. table = "<div><table class='table table-hover'>"; dados = ""; for(var i = 0; i <= retorno.dados.length; i++) { dados…
jqueryasked 9 years, 1 month ago william rodrigues 57 -
1
votes0
answers706
viewsFullcalendar - Display event date only
Does anyone know if in the Fullcalendar can only show the date of events in the calendar. As it appears in the image example below.…
-
1
votes2
answers480
viewsLoad checkbox from select
Good morning! I have the following select: <select name="category" class="form-control" id="categorias"> <option value="">Escolha uma categoria</option> <optgroup…
-
1
votes0
answers246
views$(window). height() returns value equal to $(Document). height()
I have a very annoying little problem. I’m trying to get the "scrollBottom" from the page, using: $(document).height() - ( $(this).scrollTop() + $(window).height() ) I then made a "tabelinha" to…
-
1
votes1
answer106
viewsUrlhashlistener picking up the wrong item (Owl Carousel)
I’m using Owl Carousel on a Landing page. I added some thumbnails, and used Urlhashlistener to associate the thumbnails to the respective image, but the link is opening the wrong image. It seems…
-
1
votes1
answer615
viewsDrag and Drop - Javascript or Jquery
Good morning to you... I was challenged to convert a C# Desktop application to Web, but I have no knowledge of ASP.NET, Jscript or Jquery. And among the components I need to adapt is a DRAGDROPTEXT.…
-
1
votes1
answer66
viewsHow to make it a function to apply it to a PHP variable?
<script> jQuery(function($){ $('#timer').countdown({ until: new Date("2015-11-04 12:00:00"), compact: true }); }); </script> I need to transform the above code in a function and then…
-
1
votes2
answers606
viewsJquery Check Value
I have a dynamic form with various Hidden inputs and wanted to check by jquery if there is one that has a certain value in value is possible?
-
1
votes2
answers394
viewsHow do I get value in the <td> tag in jquery?
How do I get the value 1 and manipulate - lo, by jquery, which is inside the td tag (I want this value to increase as I click an id button = 'add-Row'): <td>1</td>…
-
1
votes2
answers2436
viewsPass object array via javascript to the controller
How can I pass a javascript object array to the controller? JQUERY var array = []; var $linhas = $("#vendaTabela tbody > tr"); $linhas.each(function () { var x = { id: $(".codigo",this).text(),…
-
1
votes2
answers126
viewsHow to remove the "date" we set in jQuery?
In jQuery, it is possible to define values for an attribute through the data. Thus: $('body').data({id: 1, nome: 'stack'}); And the result of that would be: console.log($('body').data()); // {id: 1,…
jqueryasked 9 years, 1 month ago Wallace Maxters 102,340 -
1
votes0
answers177
viewsMultiple selection of radiobutton
I’m making a registration form that has the link Add more fields and when the person clicks on it, multiplies the form fields. One of these form fields is 2 radios Buttons, which are "Do you have…
-
1
votes1
answer257
viewsClick on zoom button to show the whole country (Brazil) on Google Maps
Hello I would like you to please help me with an example of how to do for when the user click a button next to the map cause the map to zoom in to show the whole country. I couldn’t make a practical…
-
1
votes1
answer1352
viewsposition of a tr (html <tr></tr>) in the sequence of tr’s
I have a simple screen, where I have already been able to create elements dynamically, with the click of the button, these elements are draggable up and down, and are two different elements, one…
-
1
votes1
answer2360
viewsFilter data from a table through a Dropdown
I have a table returning the amounts paid by taxpayers. However I have to return all the data (because the application adds field to field). So far so good. But to show the user, I need to filter…
-
1
votes2
answers853
viewsDatepicker does not work
I’m building a system in which I have to register plane of steels, so far so good... At the time of registration there are three inputs, What, Who and When as shown below: The problem is when I…
-
1
votes1
answer70
viewsDynamically triggering combos for DOM creation via jQuery
I have a sequence of 3 dropdowns that modify the DOM. One depends on the other. If I select the first dropdown it modifies the DOM and the other dropdown. The second dropdown modifies the third in…
-
1
votes1
answer405
viewsSetting an option value in a jQuery Multiselect dropdown
I’m using the library Bootstrap Multiselect: $("select#final option[value='" + data[0].final + "']").prop('selected', true); $('select#final').multiselect("refresh"); As the above code I want to…
-
1
votes1
answer227
viewsError when filtering data from Datatable
I own a Viewbag where I populate a select with a list of years. When selecting a specific year, filter the table with data only from those years. To make this filter, I’m using a script:…
-
1
votes3
answers105
viewsAutomatic scroll to the right
Is there any way in jquery when clicking a page button or a div to do a small scroll automatically?
-
1
votes2
answers1206
viewsClick event not working
<html> <head> <title>Notícia</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body>…