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
-
5
votes2
answers195
viewsClear Input When Choosing Another Option
What I wish to do The guy has in the form the option of registering natural or legal person. I want that when he clicks on the radio of the individual, he cleans the legal person input, and vice…
-
5
votes1
answer2694
viewsHow to detect collision between two squares/rectangles
Who provide an answer that explains all the necessary nuances for this in javascript will earn the points.
-
5
votes1
answer354
viewsJSON output in a table
Good afternoon, And I put a search field, and as soon as the search is done, I popular a table with the users found.. The part of the query I managed to do, but now I’m not getting popular(actually…
-
5
votes1
answer902
viewsHow to use Javascript to manipulate data from a database?
I am now beginning to deal with web development in PHP. We know that to have an efficient and dynamic system, we recommend using Javascript, such as, Jquery, Angularjs, Backbone.js and others. But…
-
5
votes2
answers172
viewsHow to select one element from another
<select class="form-control dropup bs-select-hidden" name="sys_nivel_acesso_id"> </select> <div class="btn-group bootstrap-select form-control dropup"> <button class="btn…
jqueryasked 9 years ago Rodrigo V. Lagos Eustáquio 51 -
5
votes3
answers4840
viewsHow to Format Javascript Date by Naming the Month and Day of the Week
Hello. Have that date: 18/05/17. And I need to convert her to it: 18 mai (Thu) May: (Thursday): Thursday Does anyone know how to do this using Javascript and jQuery?…
-
5
votes2
answers2126
viewsPass parameters to Modal in jQuery
I have the following button: echo '<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-cliente='.$r->idCliente.' data-datainicial='.$_GET['data_inicial'].'…
-
5
votes1
answer163
viewsjQuery doubt append appendTo inject HTML
Hello, I’m having a doubt. I have a variable containing an html structure and I need to inject a basic div (< div > < / div >) around all the contents of this variable, as a parent,…
-
5
votes3
answers1587
viewsRedeem input file name and assign input text
I have the following code with a <input> text type and other file type. See: <form action="#" method="post" enctype="multipart/form-data"> Name file: <input type="text" name="name"…
-
5
votes2
answers746
viewsWhat the best way, change only the registration steps and not every page
I have a page where the user chooses to login (if already have registration) or register, if he chooses to register by clicking the button cadastre-se I would like the element to exit to the left…
-
5
votes2
answers229
viewsCreate javascript-mounted title attribute in <td>
I have a table called gridContudo. In this table, there is this <td>: { width: 100, name: 'OBSERVACAO', index: 'OBSERVACAO', label: 'Observação'}]. What I need is to create a title attribute…
-
5
votes2
answers128
viewsMake LI appear only on Mobile
I have a LI and would like it to be shown only in mobile mode: <ul style="display: block;"> <li><a href="/">Início</a></li> <li class="list-cat"></li>…
-
5
votes7
answers5040
viewsRegular expression for accepting numbers and letters, regardless of sequence
I have the following problem, I need to validate a password field with at least 8 characters, being at least 2 numbers and the rest letters, they can be in any position. 12abcdef abcdef12 The…
-
5
votes2
answers408
viewshow to change the <H2> to <H1> via jquery
I need to change H2 to H1 dynamically I thought to use jquery as follows but it doesn’t work: $("h2").removeAttr("h2").attr('h1'); $("h2").attr('h1'); using classes as selector; $(".wd-product-list…
jqueryasked 7 years, 4 months ago hyperpixel 389 -
5
votes1
answer748
viewsCatch IMEI via Javascript
It is possible through a web page to get the IMEI of the mobile phone of those who access using javascript or anything else?
-
5
votes1
answer169
viewsremoveAttr('required') obsolete?
I have the following line in my code: $('#infs').removeAttr('required'); And when using the plugin jQuery Migrate, get the following Warning in debug: JQMIGRATE: jQuery.fn.removeAttr no longer sets…
jqueryasked 7 years, 4 months ago lucasbento 856 -
5
votes2
answers116
viewsFunction() X Function.call()
When analyzing Javascript/jQuery plugin code, I often see functions being invoked with .call(). I understand that by calling the functions in this way, the first parameter passed is the this (in…
-
5
votes1
answer132
viewsHow does v-if work internally?
From what I’ve seen, using the v-if it is possible to show and hide an element through a condition, but it does not function as a toggle of Jquery, the v-if ends up removing the element and can…
-
5
votes2
answers6432
viewsHow to enable and disable links successively?
I have five links, and initially only the first link is enabled. When this first link is clicked, I want it to auto-disable and enable the next, that is, the second link, and when the second is…
-
5
votes1
answer212
viewsHow to reset Progressbar without using effect?
I’m performing various imports, and when I perform upload of a new file I need to reset the progress, this I can set the width with 0px, however it Zera with an effect in which I would not like to…
-
5
votes3
answers241
viewsCondition within a . each()
The problem is, I’m 9 li within a ul <ul> <li>Teste1</li> <li>Teste2</li> <li>Teste3</li> <li>Teste4</li> <li>Teste5</li>…
-
5
votes2
answers109
viewsBest way to get text + HTML from an array
Function I am using: $(".push-description-top").each(function() { var text = $(this).text(); var carac = text.length; if (carac > 0) { var query = text.split(" ", 14); query.push('<a…
-
5
votes1
answer34
viewsHow can Jquery be both function and object?
I know little about Javascript, and I was trying to understand how Jquery can be a function and an object at the same time. I wondered how it was developed so that it could be called as a function…
-
5
votes1
answer578
viewsDynamically create Divs
Sirs, I am working with tabs in Jquery. I have a page called inclu_server.php where I do the Insert in the database of as many servers as I want. I need that after clicking the button next the…
-
5
votes3
answers2185
viewsHow to create and remove div s with inputs dynamically with jquery
I need to create and remove dynamically div´s for a form I have, already made using table, but now I was asked div´s. I tried to make an adaptation but I couldn’t, what I need is to create a button…
jqueryasked 7 years ago adventistapr 5,498 -
5
votes2
answers3969
viewsHow to remove all Classes from an element using jQuery?
Instead of removing all classes individually using remove class: $("#div").removeClass('classe') For every class an element may have, there is some function that can be called and remove all classes…
-
5
votes3
answers1047
viewsApply effect when changing value of an input
I need some help with an effect I wanted to do, but I’m not getting it. I have a range type input that goes from 1 at the 10, being its default value 5: <input class="i1" type="range" min="1"…
-
5
votes2
answers191
viewsReload script whenever the event happens
Hi. I was looking and I couldn’t find anything related around here, so I’m coming to ask. I’m working with the one plugin 'http://tympanus.net/codrops/2014/10/30/resizing-cropping-images-canvas/',…
-
5
votes4
answers181
viewsUnidentified error in Jquery
This error occurred in a script of mine, but in my script there is no such line break that the error is showing. The description of the error is exactly this: Uncaught Syntax Error: Unexpected Token…
-
5
votes3
answers538
viewsAverage only in typed fields
Hello, I’m programming a system where you average some fields. The point is that not always all values will be informed and the average should calculate the fields in which there are values, that…
-
5
votes1
answer3648
viewsHow to insert Access-Control-Allow-Origin in the header
Dear Friends, I am making an ajax request by JQuery.Ajax(), to consume a WS SOAP, the envelope is OK but when I make the call I get in the browser "No 'Access-Control-Allow-Origin' header is present…
-
5
votes2
answers113
viewsHow to make a link presentable
How do I "index" a link on a website to display it in a more presentable way? Example of sites/app that do this is Whatsapp, facebook, gmail. For example, in Whatsapp just paste a link and wait a…
-
5
votes1
answer2732
viewsHow to hide a modal window after a while?
Colleagues. I don’t know if I was clear in my doubt, but I would like the Bootstrap modal to disappear automatically after the deletion confirmation. For example: user will delete a product,…
-
5
votes2
answers1563
viewsHow to get all parent elements except for a few
I’m in a situation where I need to take all the "parent elements" of a div, but I can’t take them all, because it would not solve my problem. I wonder if I can put a limit on getting these elements.…
-
5
votes3
answers1248
viewsHow do I redirect the site when it’s a mobile?
I have the following code that should work, but on mobile does not work in Chrome browser: var permitir_mobile = true; var mobileUrl = 'http://m.meusitemobile.com.br'; $(document).ready(function() {…
-
5
votes4
answers354
viewsHow to put Nextel mask in an <input> with Javascript?
I’d like to put a mask on a <input> waiting for the format Nextel: <input type="text" name="nextel"> The problem that according to the website the format of Nextel is this: Urban: 2…
-
5
votes1
answer310
viewsHow to implement a pagination using PHP and Ajax
I make a query in the database through PHP that receives the data from an AJAX. (And then returns the query data to AJAX) So far so good. The problem is that I would like to paginate these data…
-
5
votes1
answer92
views.clone() not registering Select value in cloned DIV
Good afternoon guys, I think it may be something really stupid, but I can’t identify why the clone that I make of my page to be able to print 2 ways, is not capturing SELECT value of my products, it…
-
5
votes3
answers259
viewsJavascript - Make <article> appear by clicking on a <li>
I have a little doubt in my project that I am developing. I need to make that determined <article> appears when a certain <li>. Example <li>'s <li id="menu-CARD">USAR…
-
5
votes2
answers839
viewsMy site does not find the Bootstrap and Jquery files
I created a website ASP.NET MVC with Code First and did the first publish of the application, the Database and the Site were created, the problem is that the site does not find the files css and…
-
5
votes3
answers2984
viewsDelete a specific row from an html table with jquery
How to delete the row from this table: <table> <thead> <tr><th>Cod.</th><th>Nome</th><th></th></tr> </thead> <tbody> <tr…
-
5
votes1
answer2043
viewsReturning a Select option with Ajax
Hello folks all right everyone, I need your help I’m with the following problem: I have an Ajax scrpt with the states and cities of Brazil, and a select option where lists the state and the other…
-
5
votes1
answer98
viewsHow to upload photo using jQuery Picturecut?
I would like to do upload photo using the example of jQuery Picturecut. I followed all the guidelines provided by the site installing the folders and setting them to the code, but it is not working…
-
5
votes2
answers272
viewsAnimation manually Jquery
I’d like to get an idea how I can make a kind of SLIDE now with user interaction. I can’t find anything on the Internet to base on, and I can’t figure out how to do that! In the code I have a class…
-
5
votes0
answers856
viewsHow to sort a div by a string attribute with jQuery?
I am developing a list that has the header "ID" and "Status" and its ID and Status values,I have also defined an input of type Hidden for action. Following example: <div class="cabecalho">…
-
5
votes2
answers117
viewsHow to call different modals, without using database
I’m having some difficulties, I know this is not the ideal way, but it’s what I need at the moment. I have a list medicos and need to call a different modal for each of them, without database,…
-
5
votes3
answers1793
views -
5
votes1
answer2175
viewsWhat is the purpose of the "ready()" function?
In scripts written in jQuery I always come across a function that is the function ready(), as the first function to be executed, see an illustration example of it: <script…
-
5
votes2
answers583
viewsScript js does not interrupt form Ubmit
Guys I’m having a problem with an algorithm in jquery, that of uploading files with ajax without updating the page. I don’t know why when I put the return false; at the beginning of the algorithm…
-
5
votes1
answer51
viewsHow to reload the page after the message closes using Hubspot Messenger(). run()?
I’m making an MVC app and I need to re-load after the message closes (success or not). How can I do this? Codepen for testing: http://codepen.io/larissa/pen/rjOpRM/ HTML: <button class="btn…