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
-
4
votes8
answers12405
viewsHow to switch between true and false checked input?
I have this code and would like to switch between true and false the attribute checked input. Strangely is catching the id of label because the web designer superimposed the label at the input.…
-
4
votes2
answers3135
viewsHow to add with jQuery data in a table?
How to obtain with jQuery the sum of all the fields of class="subtotal1" returned from the database? <?php while($M_P = mysql_fetch_array($Dados_Produtos)) { ?> <tr class="somatoria">…
-
4
votes2
answers3522
viewsMultiple objects in jquery selector
For organization and performance I usually use several selectors together to perform a jquery method. For example: $("#bola, #casa, #arvore").css("background-color", "blue"); In this example it…
jqueryasked 10 years, 5 months ago Joao Paulo 11,760 -
4
votes1
answer1941
viewsPerform mathematical calculations with values from a dynamic table
I have a form-Wizard table that as soon as I click on "add item" I call a function and it adds a row in the table to add a new item to be purchased by the customer. This table that at each click…
-
4
votes1
answer308
viewsAdd inputs in report with more than one table!
I’m generating a report and it has several tables. In jQuery I have to add 2 inputs from each table, the problem is that it only adds up the one from the first table. I tried to use the next(), but…
-
4
votes2
answers2474
viewsGet values from within a function that is within another function
I am developing a small Javascript application that makes use of Web SQL. I want to create a function that returns the value of a variable in the VARIABLES table, as well as its observation. It…
-
4
votes1
answer520
viewsHow to access an element (or its values) generated dynamically?
I know it’s possible to use the on() and delegate the selector, so it accesses the dynamic element from a static element, but if it cannot use the on(), what to do? For example, inside any function…
-
4
votes2
answers300
viewsReturn N elements from a list in jQuery
I have a list of elements, let’s say a list of rows in a table: $('#minha_tabela tr'); There is a selector, method or overload in jQuery that I can return more than one line by passing multiple…
-
4
votes3
answers494
viewsHow to "unlock" any text at the time of "echo" and turn each word into a link
I made a database and in this database register a phrase, I would like that when I was going to give the "echo" in that sentence, each word would become a unique link. Ex: recue o código em 4…
-
4
votes2
answers492
viewsMount Datatables with Repeater
I’m riding a DataTables jQuery with Peater ASP.NET C#. What am I doing wrong? I’ve been using the code. <body> <form id="form1" runat="server"> <div> <asp:Repeater…
-
4
votes3
answers2517
viewsHow does Youtube know which videos we’ve watched?
The question itself already describes my interest, but what I’m really wanting to know is how youtube stores the information saying that we’ve already watched that video. I thought about storage…
-
4
votes2
answers2303
viewsHow to check if an answer (date) is a json
How can I check if a result (date) coming from an ajax request is a json or not? I tried this code but did not succeed var obj = $.parseJSON(response); if(obj.avatar) { } else { }…
-
4
votes2
answers1086
viewsPossible conflict between script
Good people, I use basically 4 scripts in my project. I have two pages, one where the posts are listed and the other where you view the posts. In the current browsing model, by clicking on any posts…
-
4
votes1
answer703
viewsValidate if one of the fields has been completed
I’m using the plugin Jquery Validation I need to know if at least one of the fields has been filled in Fields> Phone, Mobile Phone I tried to do so: $("#Telefone").rules("add", { required:…
-
4
votes4
answers9657
viewsHow to open a <div> by clicking on a <a> link?
I’m creating an element for a personal website, and I’d like that element "<div>" is open/closed when clicked on a button. Is a <div> containing some country flags to change language. I…
jqueryasked 9 years, 11 months ago Alexandre Lopes 2,769 -
4
votes2
answers125
viewsGive Alert after typing the word "pass"
How can I run an Alert after the user writes "stack". For example, stack (without being an input, just writing) it gives an Alert. I would have to use keypress and which to check the keys that are…
-
4
votes3
answers451
viewsPHP execution via Ajax jQuery
I am placing some instructions inside the same PHP file that are executed according to the variable value send received, at least that’s what I thought. This code has two of these instructions, one…
-
4
votes1
answer707
viewsPass values from a JSON to html via Jquery
I am trying to take the JSON data from Twitch and manipulate it in html, in case I wanted to put together a simple list with the online channels, using Alert it shows the channels but I thought to…
-
4
votes1
answer442
viewsWhat is the relationship between the Primefaces ajax and the events
Faced with certain problems during my developments I arose the following doubt for example. When I use the tag ajax in the Primefaces, has the property event where we passed events, then I arose a…
-
4
votes1
answer37
viewsCheck if a variant div exists
I have several Ivs with the class prefix "webserver_[.. ]" and would like to check if any div with the prefix "webserver_[.. ]" exists, only with jQuery, how to do?
-
4
votes1
answer460
viewsHow to enable and disable automatic scroll in a chat?
I am having doubts in the implementation of this resource. I have a link that does this action, like enable and disable the automatic scroll. For better understanding, visit JSFIDDLE below: EXAMPLE…
-
4
votes2
answers756
viewssetInterval 5 seconds locking browser
I am developing applications using jQuery/Ajax and it has to refresh page 5 in 5 seconds, it works. But if I start using the application the browser starts crashing because of the code, how to fix…
-
4
votes1
answer1340
viewsHow to create functions with callback?
Can anyone tell me how to create functions with callback? I created this function but it’s not working. function PostsCategoriasListar(table, select, callback) { if (table) { $.ajax({ url:…
jqueryasked 10 years, 3 months ago Rodrigues Costa 43 -
4
votes1
answer2069
viewsHow to get a file back into an input type file field?
I have an html form that uploads a file and I can save it to a folder. The problem is that now I need to do the reverse operation, and return the file in this same input type file field so that the…
-
4
votes3
answers843
views -
4
votes1
answer5730
viewsVertical Sidebar Menu using Bootstrap 3.3.2
My problem is replicating something similar to this. I’m having big problems solving this: http://ironsummitmedia.github.io/startbootstrap-sb-admin/ The difference is: no words. When I do Hover over…
-
4
votes1
answer1395
viewsController message to view
I did that: [HttpPost] public void CadastraUsusario(string _nome, string _usuario, string _email, string _nivel_acesso, bool _ativo) { using (RupturaEntities db = new RupturaEntities()) { Usuario…
-
4
votes2
answers207
viewsHow to force the '.on("input")' method via script?
I suppose my method: $(document).on("input", "#textbox", function(){ alert("oi"); }); What script can I force the Alert call to ("hi") ? I tried a lot and nothing: $("input#textbox").val("1");…
-
4
votes4
answers1210
viewsHow to check if an input has a string?
I need to check if the user typed a string in a field where he can only receive an Integer, did the code sequinte and when I click on the button, he always returns the Alert regardless of whether I…
-
4
votes3
answers425
viewsJavascript : Give . Hide on everything that is open
Good afternoon. I would like to know how to do instead of writing: $("#removemirror3").click(function(){ $("#mirror31").hide("slow"); $("#mirror32").hide("slow"); $("#mirror33").hide("slow");…
-
4
votes1
answer529
viewsChanging part of the text of a label
I have the following label created by a plugin <label> Buscar: <input type="search" class="form-control input-sm" placeholder="" aria-controls="Pedidos"> </label> What I want to do…
jqueryasked 9 years, 8 months ago Rafael Barbosa 2,855 -
4
votes3
answers801
viewsHow to change a <a> link according to a <select>?
I’m creating a price list for my website, and I need when the person changes the payment cycle, the link be changed <a> (HIRE) to go to the cart. Example: If the person selects the cycle…
jqueryasked 10 years, 2 months ago Alexandre Lopes 2,769 -
4
votes2
answers106
viewsVariable scope problem in each method
I’m having problems with assigning a variable within a each in jQuery. (function(){ var filters = $(".filter_check:checked"); var hiddenFields = ''; $.each(filters, function(){ hiddenFields +=…
-
4
votes4
answers18313
viewsChange point per comma to input value
I have a page with several inputs all type text and with different names and different Ids. In all of them there is the numerical value with point separating the decimals (10.00) and would like to…
-
4
votes1
answer3805
viewsGet table row values
I need to get the values of each row of my table. My table has no fixed number of rows or columns. I only desire the values of inputs (within the td). Desired inputs have class quantidadeDigitada…
jqueryasked 9 years, 8 months ago Rafael Barbosa 2,855 -
4
votes1
answer1076
viewsFacebook share button displaying wrong information in "box_count"
In a wordpress-based project that I’m working on, I have a modal that dynamically receives various information coming from a post-loop. This modal serves as a kind of "Preview" the full post. Within…
-
4
votes2
answers10690
viewsDisplay a Loader while processing ajax
It can show a message like: "Loading..." while my ajax does the operation? AJAX $.ajax({ url: url, type: 'GET', dataType: 'json', success: function(data) { console.log("sucesso"); }, error:…
-
4
votes3
answers688
views -
4
votes1
answer1812
viewsHow to consume an "asmx" Webservice via Jquery Ajax
I created a button that calls the search method Ajax to consume a Web Service Asxm. Because the Ajax does not consume the Web Service? <asp:Button ID="btnPesquisar" runat="server"…
-
4
votes4
answers2426
viewsColor transitions with fade in a word
I have a code that is making color transitions, has to leave a fade in this transition, IE, so it does not keep changing so "dry", I am doing with JS, is there any CSS what makes it? Anyway, wanted…
-
4
votes1
answer1895
viewsHow to identify which user is on my website page with Jquery
I’m making a script to identify if the user is on the site or not, but I have no idea how to do it, could someone help me? My doubt is the following, I want to know if the user is on my page, for…
-
4
votes1
answer975
viewsjQuery click does not work on results coming from $.post
I’m developing a delete button on the product form I have, it works like this Category 1 (Radio Button) Category 2 (Radio Button) After selecting a category, it sends a command jQuery for the…
-
4
votes1
answer456
viewsScroll with Animate does not work
The code below in jQuery runs perfectly well in Google Chrome and Opera. The problem is that it doesn’t work in IE and Firefox, it used to work. // Jquery document... $(document).ready(function() {…
-
4
votes5
answers6237
views -
4
votes2
answers844
viewsWhy does this menu not work in the mobile version?
I was looking for some menus/layouts templates and found that very cool, but when I googled to the mobile view when I clicked on the menu the 1st ball came and went, instead of seeing all of them…
-
4
votes1
answer3192
viewsContainer that adjusts to 100% window height and width
I wanted to create a container or a secção which automatically adjusts to the height and width of the screen, which even when resized to secção adapts to the size of this, followed by another type…
-
4
votes1
answer409
viewsStreamline Ajax Jquery Autocomplete with json data
I want to make suggestions dynamically with this API. How to streamline the suggestion file by listing data from the mysql database? Download the DEMO:…
-
4
votes3
answers598
viewsIs it possible to assemble default layout for HTML pages?
If I have two pages: pagina1.html and pagina2.html, that are very similar, it is possible to use a page layout.html to determine common elements of each page? And thus also avoid the repetition of…
-
4
votes2
answers1186
viewsBlock access to javascript files
I have a javascript file that makes ajax requests to my API only I do not want anyone to discover her link there is some way to block access to this file ? If there is no way to release so only the…
-
4
votes2
answers11358
viewsHow to customize upload file button?
I have a file upload button: <input id="file" name="file" type="file" /> He’s like this: I want to remove this description "No selected file" and customize the text of the button. Can anyone…