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
-
8
votes3
answers11523
viewsPutting two Yes and No buttons on a Javascript message
I need to do just that: In case the user click No, system closes the message and keeps the existing information on the screen. On the screen there is a button limpar and he calls the function…
-
8
votes2
answers2446
viewsjQuery - how to change text after "<i>" element?
Follows code: <div class="file-caption-name"> <i class="glyphicon glyphicon-file kv-caption-icon"></i> Alterar texto aqui </div> I’ve tried that way: $('div.file-caption-name…
-
8
votes4
answers6487
viewsMaximum request size ASP.Net MVC
I am uploading Image using Jquery. I limited the image to 2mb, but sending a larger image of 2mb shows an exception saying Maximum request size exceeded. That’s what I did: function fileUpload() {…
-
8
votes1
answer1094
viewsWhy is jQuery becoming obsolete?
More and more, I find articles (in English or in Portuguese) that speak about it... I do wrong for continuing to use the jQuery on websites? What’s wrong with it? Is there any other framework (or…
-
8
votes3
answers5803
viewsDifference between $.ajax(), $.get() and $.load()?
What’s the difference between $.ajax(), $.get() and $.load()? Which is the best to use and under which conditions?
-
8
votes0
answers160
viewsWhat is the difference between text() and html()?
What’s the difference between text() and html()? $("#div").html('<a href="example.html">Link</a><b>hello</b>'); vs $("#div").text('<a…
-
8
votes5
answers14934
viewsSort Datatable Datetime Field
Hello. I have the following datatable: success: function (data) { $('#table-controle').html(data); $('#table-controle').DataTable({ "language": { "url":…
-
8
votes3
answers761
viewsAbort AJAX request
I have a question. I need to cancel an AJAX request on the client side and the server side. On the client side I use the abort() var requisicao = $.ajax({ url : 'xyz.php' }); if(requisicao…
-
8
votes1
answer1840
viewsHow to implement editable table by updating the fields in the database automatically
I have the following table that lets edit directly in cells: The codes are in 4 parts: Mysql table CREATE TABLE IF NOT EXISTS `php_interview_questions` ( `id` int(8) NOT NULL, `question` text NOT…
-
8
votes2
answers139
viewsEverything I do with Jquery I can do with Javascript?
I have a serious problem that is: I’m learning jQuery before Javascript, and I think now I’m going to get hurt, put in my sites only use jQuery, and I’m realizing it’s bad practice. But returning…
-
8
votes2
answers713
viewsDynamic grouping of JSON data
I have been trying for a few days to perform JSON data grouping dynamically, but without success, it is a matter of logic rather than programming itself. Given an array of objects(Users), group them…
-
8
votes3
answers923
viewswindow.showModalDialog does not work on Google Chrome, is there anything equivalent?
Good morning, I’m trying to open a modal on google Chrome... The current application already uses window.showModalDialog for years, it works in IE... I can not make the changes using the html 5…
-
8
votes3
answers1569
viewsForm completion with return of a json
I am using a webservice (viaCep) for automatic filling of the backyard, for when the user type a zip code. The webservice returns me a json with the information from the patio, and from that return…
-
8
votes1
answer201
viewsElement removal with Javascript
Remove an element using Jquery is the simplest and most objective thing there is, first you capture the element and then remove it: $('#elemento').remove(); I arrived in a situation where I need to…
-
8
votes2
answers1618
viewsHow to go through string and replace ** with <b></b>
Lately I have used some systems that have the following function, when writing a text between ** it turns this text into bold for example: Julio *Enrique* dos Santos expected result will be: Julio…
-
7
votes4
answers12949
viewsReturn Array with name of all files in directory
I need my HTML5 page to return a Array with all existing file names and extensions in a directory within my site. I can do this in other server-side languages, but I would like to do it in JS. there…
-
7
votes2
answers531
viewsHow to avoid conflict between jQuery and Mootools
Good practices to avoid conflicts between jQuery and Mootools libraries? This example makes the mistake Uncaught TypeError: Object [object Object] has no method 'fade' //codigo Mootools…
-
7
votes1
answer370
viewsResponsive Nav-bar at the Foundation?
I am maintaining a site that was done with Foundation, and I really have no knowledge of this framework, because I only work with Bootsrap. I’ve searched the Foundation documentation but I can’t…
-
7
votes2
answers638
viewsHow to do an action after three dynamic elements are filled with jQuery/javascript?
I have three select that are created after the user clicks on a button, ie are dynamic: <select id="cbExercicio"><option value="0"></option></select> <select…
-
7
votes5
answers2130
viewsHow to add a class to a <li> by clicking on it, leaving only it with this class?
For example: I have more than one ul with their li; If I click on a li of the first ul she has to add a class; If I click on a li of the second ul, she adds that same class. Only that does not…
-
7
votes2
answers326
viewsHow does the jQuery stack (stack) work?
When I learned to use the method .end jQuery, I realized that it was a powerful tool that ensures a lot of expressiveness to the code (and I’ve already seen how to integrate it to my plugins).…
-
7
votes1
answer353
viewsWhy am I losing the values of <input> when opening and closing a <iframe> using Javascript?
Context: I have an application, which uses php+html+css+javascript(with jquery). On it I have a page called principal.php containing an iframe: <iframe src=pedido.php/> inside calling the…
-
7
votes5
answers1446
viewsIs it possible to include elements in the DOM after it is loaded and ready?
I have a table that, depending on the amount of an X value, inserts a set of attributes at the bottom of the page (fields). These elements have events assigned to them. But that’s not the point.…
-
7
votes2
answers439
viewsJquery - Problem with events Mouseenter() & Mouseleave()
Situation: I have a menu, and I need that when an event occurs hover, he displays a series of information from the respective menu When the mouse goes to another menu, the displayed information has…
-
7
votes3
answers162
viewsUse . on() instead of . bind() in Cakephp’s Jshelper
When I write Ajax with Cakephp’s Jshelper, I write something like this $this->Js->get('#searchCity')->event( 'click', $this->Js->request( 'http://api.geonames.org/searchJSON', array(…
-
7
votes3
answers7402
viewsLoad refresh-free page post with AJAX and JQUERY
I am in need of a Wordpress help as I would like to load posts without refresh or reload page. I have a menu that returns posts from a certain category in a <div> left and would like to be…
-
7
votes2
answers889
viewsIs it possible to disable a certain action of an HTML element with a certain class via jQuery?
On my startup I know that all links should block, using the plugin jquery-blockui, the screen to avoid multiple clicks of impatient user avoiding multiple and unnecessary server requests.…
jquery jquery-ui jquery-blockui jquery-ui-multiselectasked 10 years, 9 months ago Philippe Gioseffi 3,202 -
7
votes2
answers6229
viewsChange image src through jquery
I’m using the plugin Animated Responsive Image Grid and I want to change the image src through Javascript/Jquery. Html code: <div id="ri-grid" class="ri-grid ri-grid-size-1 ri-shadow">…
-
7
votes2
answers1564
viewsCSS/jQuery selector for a table column
Is there a CSS or jQuery selector that takes a column from a table (each td column)? Or, if there isn’t a simple selector that can do it, you can do it with a little code in jQuery/Javascript?…
-
7
votes3
answers8251
viewsUsing jQuery Validation Engine and CNPJ validation
I am using the jQuery Validation Engine with this file of translations into Portuguese. I added in Javascript the following line: "cnpj": { "regex": /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/,…
-
7
votes2
answers664
viewsHow to effect "cascade" with Javascript / jQuery?
Imagine I have a list of 20 blocks <li>, and that when the page loads, each of them should be shown within milliseconds of each other (this would be done with CSS3, so the code would only have…
-
7
votes1
answer790
viewsClosest vs Parents
I was reading the jQuery documentation and I realized the similarity between the methods closest and parents. He cites the differences between the methods, stating that "they are subtle but…
-
7
votes1
answer6370
viewsHow to clone an element with jQuery and add a new name?
I’m using the plugin jQuery Cloneya to clone elements of a form with jQuery, but it is a little limited, wanted to clone the inputs but I need to increment the name when this is done, for example:…
-
7
votes7
answers6999
viewsSplit() integer with Javascript
Valor = 19.90; MyArray = valor.split("."); the code hangs , whole variable, however if, Valor = "19.90"; MyArray = valor.split("."); alert(MyArray[0]) = 19; alert(MyArray[1]) = 90; I would like to…
-
7
votes1
answer5827
viewsMounting map style site bomnegocio.com
Well, I’d like to know how to create a site-style map bomnegocio.com. I don’t know if on that map there is a single image or several grouped images. Could someone give me a light on how to do that…
-
7
votes2
answers338
viewsJSON performance to power an entire website
Adapting a Drupal theme to pure HTML with a tight schedule as expected, the code came out a little more complicated than I’d like. In this way, I had the opportunity to explore JSON and some of its…
-
7
votes2
answers24802
viewsClick on the Enter key
Could someone help me put the button click on the key Enter using Javascript or Jquery?
-
7
votes1
answer4635
viewsHow to recover query result variables via Ajax in PHP?
I made an appointment via Ajax that returned me the variables within the PHP: // Variaveis $nome = $Fetchi['nome']; $email = $Fetchi['email']; $tipo = $Fetchi['tipo']; $senha = "Digite uma nova…
-
7
votes3
answers1242
viewsTransforming jQuery code into Javascript
I have a problem similar to that : Insert text - Stack But in my case I need the code in pure Javascript and I have no idea (novice in Prog. web) how to change from jQuery that they gave as a…
-
7
votes4
answers2296
viewsHow to order three Ivs according to an attribute of hers?
I have 3 Divs: <div id='pai'> <div class='produtos' contagem='2'></div> <div class='produtos' contagem='1'></div> <div class='produtos' contagem='3'></div>…
-
7
votes3
answers367
viewsjQuery - Typical duplicate use situation of the same code. How to proceed?
Being here doing my sites on php/mysql/html/css and learning more and more about jQuery I found myself in the situation where I should use the same code for two ids distinct. How to proceed when you…
-
7
votes1
answer1542
viewsUpload image data via ajax
<script type="text/javascript"> $(function(){ $("#oformulario").submit(function(e){ e.preventDefault(); var nome = $("#nome").val(); var email = $("#email").val(); var obs = $("#obs").val();…
-
7
votes2
answers3994
viewsHow to calculate total table value with Javascript?
Imagine that I have a table with a number of rows that varies dynamically (that is, the user can insert more rows) and each row has two columns with two text fields: quantidade and valor. What would…
-
7
votes3
answers237
viewsjQuery influences the application’s "performance"?
I personally love and use the jQuery library. This library influences the "performance" of the application?
-
7
votes2
answers1163
viewsDetect if the event was triggered by the user or via script
I need to detect if the event (click) was triggered by the user or method trigger jQuery. Analyzing the parameter event found two properties I could use for this check: when the event is triggered…
-
7
votes1
answer9080
viewsMoving and removing HTML elements with jQuery
I’m having problems with the code below. In case I have two menus, the menu menuAprendido and the menu menuAprender and I have to add objects to menuAprender and move them to the menuAprendido, so…
-
7
votes3
answers23448
viewsFooter "glued" at the bottom of the page and responsive (variable height - using bootstrap)
I’ve been following similar issues here on stackoverflow and other web sites, in addition to tutorials on the internet, but the vast majority of solutions do not work as I need, or even are…
-
7
votes4
answers989
viewsRead input value type file doubt
A question, why does it work: $("input[type='file']")[0].files[0] and that’s not? $("input[type='file']").files[0] // TypeError: $(...).files is undefined…
-
7
votes1
answer2355
viewsFloating banner sidebar with Jquery accompanies scroll
is the following.. i have a floating banner on my blog using the following JS $(function(){ var jElement = $('.element'); $(window).scroll(function(){ if ( $(this).scrollTop() > 2000 ){…
-
7
votes6
answers17707
viewsHow to validate date with Angularjs or jQuery?
I have a simple input that gets a date, how to validate that date if it is true? For example: 31/02/2006 this does not exist 20/20/9999 this does not exist <input name="data" ui-mask="99/99/9999"…